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
|
- 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
|
|
||||||
|
|
Loading…
Reference in a new issue