mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ab408b0000
to use multiple import statements to implement 'class' like behavior, and also to share a common list of handlers between multiple patterns.
14 lines
421 B
YAML
14 lines
421 B
YAML
---
|
|
- hosts: '*'
|
|
tasks:
|
|
- include: base.yml
|
|
- 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:
|
|
- include: handlers.yml
|