php: Korrigiere lint-Warnungen
This commit is contained in:
parent
bb8855a6fc
commit
c8cfe56c16
1 changed files with 18 additions and 14 deletions
|
@ -1,52 +1,56 @@
|
||||||
---
|
---
|
||||||
- name: "php | Kopiere angepasste Konfigurationsdateien"
|
- name: "PHP | Kopiere angepasste Konfigurationsdateien"
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "{{ item }}.j2"
|
src: "{{ item }}.j2"
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/mods-available/{{ item }}"
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/{{ item }}"
|
||||||
|
mode: 0644
|
||||||
loop:
|
loop:
|
||||||
- sao.ini
|
- sao.ini
|
||||||
- sao-fpm.ini
|
- sao-fpm.ini
|
||||||
|
|
||||||
- name: "php | Verlinke Apache Konfiguration"
|
- name: "PHP | Verlinke Apache Konfiguration"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao.ini"
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao.ini"
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-sao.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/apache2/conf.d/30-sao.ini"
|
||||||
state: link
|
state: link
|
||||||
when: "'libapache2-mod-php{{ php_version.stdout }}' in ansible_facts.packages"
|
when: "'libapache2-mod-php{{ php_version.stdout }}' in ansible_facts.packages"
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
|
|
||||||
- name: "php | Verlinke cli Konfiguration"
|
- name: "PHP | Verlinke cli Konfiguration"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao.ini"
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao.ini"
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao.ini"
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: "php | Erstelle Log-Verzeichnis"
|
- name: "PHP | Erstelle Log-Verzeichnis"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ php_fpm_log_dir }}"
|
path: "{{ php_fpm_log_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: "php | Verlinke FPM-Konfiguration"
|
- name: "PHP | Verlinke FPM-Konfiguration"
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-fpm.ini"
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-fpm.ini"
|
||||||
dest: "/etc/php/{{ php_version.stdout }}/fpm/conf.d/30-sao-fpm.ini"
|
dest: "/etc/php/{{ php_version.stdout }}/fpm/conf.d/30-sao-fpm.ini"
|
||||||
state: link
|
state: link
|
||||||
when: "'php-fpm' in ansible_facts.packages"
|
when: "'php-fpm' in ansible_facts.packages"
|
||||||
notify: reload php-fpm
|
notify: reload php-fpm
|
||||||
|
|
||||||
- name: "php | Kopiere Template für PHP-FPM systemd socket"
|
- name: "PHP | Kopiere Template für PHP-FPM systemd socket"
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: systemd/php-fpm@.socket
|
src: systemd/php-fpm@.socket
|
||||||
dest: /etc/systemd/system/php-fpm@.socket
|
dest: /etc/systemd/system/php-fpm@.socket
|
||||||
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- stop php-fpm-socket
|
- stop php-fpm-socket
|
||||||
- stop php-fpm-service
|
- stop php-fpm-service
|
||||||
- start php-fpm-socket
|
- start php-fpm-socket
|
||||||
|
|
||||||
- name: "php | Kopiere Template für PHP-FPM systemd service"
|
- name: "PHP | Kopiere Template für PHP-FPM systemd service"
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: systemd/php-fpm@.service.j2
|
src: systemd/php-fpm@.service.j2
|
||||||
dest: /etc/systemd/system/php-fpm@.service
|
dest: /etc/systemd/system/php-fpm@.service
|
||||||
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- stop php-fpm-socket
|
- stop php-fpm-socket
|
||||||
- stop php-fpm-service
|
- stop php-fpm-service
|
||||||
|
|
Loading…
Reference in a new issue