Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 357 Bytes

ansible.md

File metadata and controls

21 lines (17 loc) · 357 Bytes

Ansible

Test connection as root

$ ansible all -m ping -u USER --ask-become-pass

Run command directly

$ ansible all -s -m shell -a 'apt-get install nginx'

Run playbook and ask for sudo password

$ ansible-playbook -s main.yml -K

Create templates for a role:

$ ansible-galaxy init ROLENAME