From 31fd563b47fbbbcb92a87115dd789f77af55759e Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 26 Feb 2023 00:31:22 +0100 Subject: [PATCH] =?UTF-8?q?nextcloud:=20Bereite=20PHP-PFM-H=C3=A4rtung=20v?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/php.yml | 17 +++++++++++++++++ templates/systemd/php-fpm-override.conf | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 templates/systemd/php-fpm-override.conf diff --git a/tasks/php.yml b/tasks/php.yml index 58186b4..98d5502 100644 --- a/tasks/php.yml +++ b/tasks/php.yml @@ -11,6 +11,23 @@ - stop php-fpm-service - start php-fpm-socket +#- name: "php | Erstelle PHPPFM-override-Verzeichnis" +# ansible.builtin.file: +# path: "/etc/systemd/system/php-fpm@{{ instance.user }}.service.d" +# state: directory +# mode: 0755 + +#- name: "php | Kopiere PHPFPM-override-Datei" +# ansible.builtin.template: +# src: systemd/php-fpm-override.conf +# dest: "/etc/systemd/system/php-fpm@{{ instance.user }}.service.d/override.conf" +# mode: 0644 +# notify: +# - stop php-fpm-socket +# - stop php-fpm-service +# - Systemd daemon-reload +# - start php-fpm-socket + - name: "php | {{ instance.name }} | Erstelle Log-Datei" file: path: "{{ php_fpm_log_dir }}/{{ instance.user }}.log" diff --git a/templates/systemd/php-fpm-override.conf b/templates/systemd/php-fpm-override.conf new file mode 100644 index 0000000..f11f64f --- /dev/null +++ b/templates/systemd/php-fpm-override.conf @@ -0,0 +1,4 @@ +# {{ ansible_managed }} + +[Service] +ReadWritePaths=-{{ nextcloud_install_path }}/