Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
server:ansible [2020/05/08 21:05] – [Commands] tmadeserver:ansible [2021/04/02 18:50] – [Commands] tmade
Line 2: Line 2:
  
 ====Commands==== ====Commands====
 +
 +https://docs.ansible.com/ansible/latest/user_guide/intro_adhoc.html
  
   ansible all -m ping -vvv   ansible all -m ping -vvv
Line 7: Line 9:
   ansible --inventory /etc/ansible/hosts myhost.local -i hosts -m ping   ansible --inventory /etc/ansible/hosts myhost.local -i hosts -m ping
   ansible-doc user   ansible-doc user
-  ansible-inventory --graph Ubuntu16_4+  ansible-inventory --graph Ubuntu16_4                                           #show members of group "Ubuntu16_4" 
 +  ansible-inventory --graph                                                      #show groups 
 +  ansible myhost.local -a "sudo apt-get update" 
 +  ansible mygroup -a "/sbin/reboot" 
 + 
 +====Config==== 
 + 
 +  /etc/ansible/ansible.cfg
  
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