mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-30 13:03:26 +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
|
notify: restart php-fpm
|
||||||
|
|
||||||
- name: Ensure php-fpm is started and enabled at boot (if configured).
|
- 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:
|
service:
|
||||||
name: "{{ php_fpm_daemon }}"
|
name: "{{ php_fpm_daemon }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
use: service
|
use: service
|
||||||
when: php_enable_php_fpm
|
when: php_enable_php_fpm and ansible_distribution == "Debian"
|
||||||
|
Loading…
Reference in New Issue
Block a user