]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/apache2/tasks/main.yml
fd85eb65d504cd6601669e5db2520c0d191a2ad2
[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=installed
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