ansible-role-nextcloud/tasks/php.yml

33 lines
871 B
YAML
Raw Normal View History

2020-12-03 15:52:14 +01:00
---
- name: "php | {{ instance.name }} | FPM-Pool kopieren"
2020-12-03 15:52:14 +01:00
template:
src: php_fpm_pool.j2
dest: "/etc/php/{{ php_version.stdout }}/fpm/pool.d/{{ instance.user }}.cfg"
2020-12-03 15:52:14 +01:00
owner: root
group: root
mode: 0644
notify:
- stop php-fpm-socket
- stop php-fpm-service
- start php-fpm-socket
- name: "php | {{ instance.name }} | Erstelle Log-Datei"
file:
path: "{{ php_fpm_log_dir }}/{{ instance.user }}.log"
state: touch
owner: "{{ instance.user }}"
group: "{{ instance.user }}"
- name: "php | {{ instance.name }} | Aktiviere systemd Socket"
systemd:
name: "php-fpm@{{ instance.user }}.socket"
enabled: true
state: started
daemon_reload: true
- name: "php | {{ instance.name }} | Aktiviere systemd Service"
systemd:
name: "php-fpm@{{ instance.user }}.service"
enabled: true
daemon-reload: true