2012-02-27 03:09:56 +01:00
|
|
|
---
|
2012-03-03 17:02:14 +01:00
|
|
|
- hosts: all
|
|
|
|
user: root
|
2012-03-06 02:09:03 +01:00
|
|
|
vars:
|
|
|
|
http_port: 80
|
|
|
|
max_clients: 200
|
2012-03-13 03:03:20 +01:00
|
|
|
vars_files:
|
|
|
|
- external_vars.yml
|
2012-02-24 05:54:16 +01:00
|
|
|
tasks:
|
2012-03-13 01:53:10 +01:00
|
|
|
- name: simulate long running op (15 sec), wait for up to 45, poll every 5
|
|
|
|
action: command /bin/sleep 15
|
|
|
|
async: 45
|
|
|
|
poll: 5
|
2012-03-13 02:02:38 +01:00
|
|
|
- name: fire and forget
|
|
|
|
action: command /bin/sleep 15
|
|
|
|
async: 45
|
|
|
|
poll: 0
|
2012-03-06 04:00:22 +01:00
|
|
|
- include: base.yml favcolor=blue
|
2012-03-07 03:13:50 +01:00
|
|
|
- name: write the foo config file using vars set above
|
|
|
|
action: template src=foo.j2 dest=/etc/some_random_foo.conf
|
2012-02-25 20:42:41 +01:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-28 04:48:45 +01:00
|
|
|
- name: ensure apache is running
|
|
|
|
action: service name=httpd state=started
|
2012-03-06 02:09:03 +01:00
|
|
|
- name: pointless test action
|
|
|
|
action: command /bin/echo {{ http_port }}
|
2012-02-25 20:42:41 +01:00
|
|
|
handlers:
|
2012-03-03 16:53:15 +01:00
|
|
|
- include: handlers.yml
|