2012-02-27 02:09:56 +00:00
|
|
|
---
|
2012-03-02 03:20:45 +00:00
|
|
|
- hosts: '*'
|
2012-02-24 04:54:16 +00:00
|
|
|
tasks:
|
2012-02-28 03:48:45 +00:00
|
|
|
- name: configure template & module variables for future template calls
|
|
|
|
action: setup http_port=80 max_clients=200
|
|
|
|
- name: write the apache config file
|
|
|
|
action: template src=/srv/httpd.j2 dest=/etc/httpd/conf
|
2012-02-25 19:42:41 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-28 03:48:45 +00:00
|
|
|
- name: ensure apache is running
|
|
|
|
action: service name=httpd state=started
|
2012-02-25 19:42:41 +00:00
|
|
|
handlers:
|
2012-02-27 01:54:51 +00:00
|
|
|
- name: restart apache
|
2012-02-28 03:48:45 +00:00
|
|
|
- action: service name=httpd state=restarted
|