Table of Contents



ansible all -m ping -vvv
ansible hostname -m ping -vvv
ansible --inventory /etc/ansible/hosts myhost.local -i hosts -m ping
ansible-doc user
ansible-inventory --graph Ubuntu16_4                                                         #show members of group "Ubuntu16_4"
ansible-inventory --graph                                                                    #show groups
ansible myhost.local -a "apt-get update" -u ansible --become
ansible mygroup -a "/sbin/reboot"
ansible mygroup -a "/sbin/reboot" -f 10 -u username --become                                 #run command in root-context trough "--become"


server/ansible.txt · Last modified: 2021/04/02 18:56 by tmade
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki