2012-02-26 21:09:56 -05:00
|
|
|
---
|
2012-03-03 11:02:14 -05:00
|
|
|
- hosts: all
|
|
|
|
user: root
|
2012-02-23 23:54:16 -05:00
|
|
|
tasks:
|
2012-03-03 10:53:15 -05:00
|
|
|
- include: base.yml
|
2012-02-27 22:48:45 -05:00
|
|
|
- name: configure template & module variables for future template calls
|
|
|
|
action: setup http_port=80 max_clients=200
|
|
|
|
- name: write the apache config file
|
2012-03-02 22:38:55 -05:00
|
|
|
action: template src=/srv/httpd.j2 dest=/etc/httpd.conf
|
2012-02-25 14:42:41 -05:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2012-02-27 22:48:45 -05:00
|
|
|
- name: ensure apache is running
|
|
|
|
action: service name=httpd state=started
|
2012-02-25 14:42:41 -05:00
|
|
|
handlers:
|
2012-03-03 10:53:15 -05:00
|
|
|
- include: handlers.yml
|