12 $ sudo mkdir /etc/ansible
13 $ sudo vim /etc/ansible/hosts
19 ### Running a playbook
21 $ ansible-playbook playbook.yml
40 - include: db.yml user=timmy
46 action: service name=apache2 state=started
49 - name: install apache
50 action: apt pkg=apache2 state=latest
60 project_root: /etc/xyz
62 - name: Create the SSH directory.
63 file: state=directory path=${project_root}/home/.ssh/
71 - { role:ruby, sudo_user:$user }
75 # roles/db/tasks/*.yml
76 # roles/db/handlers/*.yml
83 failed_when: "'FAILED' in result.stderr"
87 changed_when: "result.rc != 2"
92 local_home: "{{ lookup('env','HOME') }}"
96 * [Intro](http://www.ansibleworks.com/docs/intro_configuration.html)
97 * [Modules](http://www.ansibleworks.com/docs/modules.html)