e4304a0ac5
service module is installed by setup.py
14 lines
447 B
YAML
14 lines
447 B
YAML
---
|
|
- hosts: '*'
|
|
tasks:
|
|
- 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
|
|
notify:
|
|
- restart apache
|
|
- name: ensure apache is running
|
|
action: service name=httpd state=started
|
|
handlers:
|
|
- name: restart apache
|
|
- action: service name=httpd state=restarted
|