]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/apache2/tasks/main.yml
Update "apt" tasks to use lists
[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: [
11       'apache2',
12       'apache2-utils',
13       'apachetop',
14     ]
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