ansible-role-php/tasks/php.yml

31 lines
1,014 B
YAML
Raw Normal View History

---
- 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