ansible/roles/php7-apache2/tasks/main.yml
---
- name: Debian - install packages
apt: pkg={{ item }} state=installed
with_items: "{{ php_apache2_packages }}"
register: php_apache2_install
- name: ensure PHP7 is enabled on Apache
apache2_module:
name: php7.0
state: present
notify:
- restart apache2
tags:
- harden