Disable override (we can use the settings in the mail file)

Disable default service
This commit is contained in:
phil 2023-11-08 15:01:04 +01:00
parent ea725abe9e
commit 6cde27cbce
2 changed files with 5 additions and 19 deletions

View file

@ -1,4 +0,0 @@
## Managed by Ansible
[Service]
Restart=always

View file

@ -32,18 +32,8 @@
- stop php-fpm-service - stop php-fpm-service
- start php-fpm-socket - start php-fpm-socket
- name: "PHP | Create systemd override directory" - name: "PHP | Disable default service"
ansible.builtin.file: ansible.builtin.systemd:
path: /etc/systemd/system/php-fpm@.service.d name: "php{{ php_version.stdout }}-fpm.service"
state: directory state: stopped
mode: "0755" enabled: false
- name: "PHP | Copy systemd override configuration"
ansible.builtin.copy:
src: systemd/override.conf
dest: /etc/systemd/system/php-fpm@.service.d/override.conf
mode: "0644"
notify:
- Reload systemd
- stop php-fpm-service
- start php-fpm-socket