Difference between revisions of "Ansible"

From Freephile Wiki
Jump to navigation Jump to search
(Add performance tuning)
(adds help and version)
Line 52: Line 52:
 
== Example Commands ==
 
== Example Commands ==
 
Note: control verbosity with <code>-vvvv</code>
 
Note: control verbosity with <code>-vvvv</code>
 +
# <code>ansible --help</code> display help
 +
# <code>ansible --version</code> show version info
 
# <code>ansible -c local -i ~/ansible_hosts -m ping all</code> ping all the hosts in the inventory file
 
# <code>ansible -c local -i ~/ansible_hosts -m ping all</code> ping all the hosts in the inventory file
 
# <code>ansible '''-m setup''' wiki.example.com</code> Use the '''[https://docs.ansible.com/ansible/latest/setup_module.html setup]''' module to gather ansible 'facts' (aka [[ansible_variables]]) about that host.
 
# <code>ansible '''-m setup''' wiki.example.com</code> Use the '''[https://docs.ansible.com/ansible/latest/setup_module.html setup]''' module to gather ansible 'facts' (aka [[ansible_variables]]) about that host.

Revision as of 10:21, 29 November 2017