Disable override (we can use the settings in the mail file)
Disable default service
This commit is contained in:
parent
ea725abe9e
commit
6cde27cbce
2 changed files with 5 additions and 19 deletions
|
@ -1,4 +0,0 @@
|
|||
## Managed by Ansible
|
||||
|
||||
[Service]
|
||||
Restart=always
|
|
@ -32,18 +32,8 @@
|
|||
- stop php-fpm-service
|
||||
- start php-fpm-socket
|
||||
|
||||
- name: "PHP | Create systemd override directory"
|
||||
ansible.builtin.file:
|
||||
path: /etc/systemd/system/php-fpm@.service.d
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- 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
|
||||
- name: "PHP | Disable default service"
|
||||
ansible.builtin.systemd:
|
||||
name: "php{{ php_version.stdout }}-fpm.service"
|
||||
state: stopped
|
||||
enabled: false
|
||||
|
|
Loading…
Reference in a new issue