30 lines
1,014 B
YAML
30 lines
1,014 B
YAML
---
|
|
- name: "php | Kopiere angepasste Konfigurationsdateien"
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/{{ item }}"
|
|
loop:
|
|
- sao.ini
|
|
- sao-fpm.ini
|
|
|
|
- name: "php | Verlinke Apache Konfiguration"
|
|
file:
|
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao.ini"
|
|
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-sao.ini"
|
|
state: link
|
|
when: "'libapache2-mod-php{{ php_version.stdout }}' in ansible_facts.packages"
|
|
notify: reload apache2
|
|
|
|
- name: "php | Verlinke cli Konfiguration"
|
|
file:
|
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao.ini"
|
|
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao.ini"
|
|
state: link
|
|
|
|
- name: "php | Verlinke FPM-Konfiguration"
|
|
file:
|
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-fpm.ini"
|
|
dest: "/etc/php/{{ php_version.stdout }}/fpm/conf.d/30-sao-fpm.ini"
|
|
state: link
|
|
when: "'php-fpm' in ansible_facts.packages"
|
|
notify: reload php-fpm
|