]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/apache2/tasks/main.yml
0a890a9403be393f8d8cf76a5b9dbb66c7fecd6d
[AnsibleRoles.git] / roles / apache2 / tasks / main.yml
1 ---
2 # apache2 tasks
3
4 - name: install packages for Apache 2
5   tags:
6     - apache
7     - packages
8   apt: >
9     state=present
10     name={{ item }}
11   with_items:
12     - apache2
13     - apache2-utils
14     - apachetop
15   notify:
16     - restart "apache2"
17
18 - name: ensure service "apache2" is enabled and started
19   tags:
20     - apache
21     - services
22   service: >
23     enabled=yes
24     name=apache2
25     state=started