mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Issue #191: Add workaround for Debian not enabling service.
This commit is contained in:
parent
1d8d6fe497
commit
84ab337202
@ -70,9 +70,17 @@
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: Ensure php-fpm is started and enabled at boot (if configured).
|
||||
service:
|
||||
name: "{{ php_fpm_daemon }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
when: php_enable_php_fpm and ansible_distribution != "Debian"
|
||||
|
||||
# See: https://github.com/ansible/ansible/issues/22303
|
||||
- name: Ensure php-fpm is started and enabled at boot (if configured, Debian).
|
||||
service:
|
||||
name: "{{ php_fpm_daemon }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
use: service
|
||||
when: php_enable_php_fpm
|
||||
when: php_enable_php_fpm and ansible_distribution == "Debian"
|
||||
|
Loading…
Reference in New Issue
Block a user