playbook.yml 447 Bytes
Newer Older
1
---
2
- hosts: '*'
3
  tasks:
4 5 6 7
  - 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
8 9
    notify:
    - restart apache
10 11
  - name: ensure apache is running
    action: service name=httpd state=started
12
  handlers:
13
    - name: restart apache
14
    - action: service name=httpd state=restarted