]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/apache2-php7/tasks/main.yml
apache2-php7: Install "php-pgsql" by default
[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     - php-pgsql
17   notify:
18     - restart "apache2"
19
20 - name: ensure service "apache2" is enabled and started
21   tags:
22     - apache
23     - services
24   service: >
25     enabled=yes
26     name=apache2
27     state=started