14 - <https://www.ansible.com/>
18 $ sudo mkdir /etc/ansible
19 $ sudo vim /etc/ansible/hosts
25 ### Running a playbook
27 $ ansible-playbook playbook.yml
48 - include: db.yml user=timmy
54 action: service name=apache2 state=started
57 - name: install apache
58 action: apt pkg=apache2 state=latest
68 project_root: /etc/xyz
70 - name: Create the SSH directory.
71 file: state=directory path=${project_root}/home/.ssh/
79 - { role:ruby, sudo_user:$user }
83 # roles/db/tasks/*.yml
84 # roles/db/handlers/*.yml
91 failed_when: "'FAILED' in result.stderr"
95 changed_when: "result.rc != 2"
100 local_home: "{{ lookup('env','HOME') }}"