Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rb:ansible [16/09/2019 17:11]
andrew [Manipulate login shell]
rb:ansible [05/03/2020 17:06] (current)
andrew [Running a specific section of a playbook]
Line 27: Line 27:
 ===== Running playbook locally on just localhost ===== ===== Running playbook locally on just localhost =====
  
-  # ansible-playbook playbook.yml -c local -i localhost, ​+  # ansible-playbook playbook.yml -c local
  
 +-c is connection.
 ===== Running a specific section of a playbook ===== ===== Running a specific section of a playbook =====
  
Line 38: Line 39:
 | -i hosts-ansible.ans | hosts list to apply to | | -i hosts-ansible.ans | hosts list to apply to |
 | -u ec2-user | Username to log in to instance with |  | -u ec2-user | Username to log in to instance with | 
-| --sudo | Use sudo to becom root |+| --sudo | Use sudo to become ​root |
 | --private-key ans.rsa | Private key half for key based auth | | --private-key ans.rsa | Private key half for key based auth |
 | main.yml | Entry point file for the playbook| | main.yml | Entry point file for the playbook|

rb/ansible.1568653877.txt.gz ยท Last modified: 16/09/2019 17:11 by andrew