diff --git a/roles/apache-php/tasks/main.yml b/roles/apache-php/tasks/main.yml index 9fcb279..0805f6a 100644 --- a/roles/apache-php/tasks/main.yml +++ b/roles/apache-php/tasks/main.yml @@ -48,7 +48,7 @@ - name: Disable modules command: argv: - - "/usr/sbin/a2enmod" + - "/usr/sbin/a2dismod" - "{{ item }}" removes: "/etc/apache2/mods-enabled/{{ item }}.load" loop: @@ -61,9 +61,11 @@ - "{{ item }}" creates: "/etc/apache2/mods-enabled/{{ item }}.load" loop: + - headers - mpm_prefork + # Fun fact: this works + - php* - rewrite - ssl - - headers notify: restart apache become: yes