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