Ansible - Ansible command line

> Infrastructure as code > Ansible

1 - About

Ansible define and run a single playbook task against a set of hosts.

Ansible “raw” module is a command line for executing commands in a quick and dirty way. The script module don’t even need Python installed.

Advertising

3 - Location

/usr/bin/ansible

4 - Example

4.1 - Module

# with an inventory file
ansible all -i inventory.ini -m setup 
# or against a computer
ansible all -i sub.example.com, -m setup 

4.2 - Ad-hoc command