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.


3 - Location


4 - Example

4.1 - Module

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

4.2 - Ad-hoc command