mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-28 12:45:16 +01:00
Merge pull request #408 from KiweeEu/feature/do-not-run-php-fpm-in-check-mode
Do not run php-fpm service when ansible is in check mode
This commit is contained in:
commit
2d4501688a
@ -13,3 +13,4 @@
|
|||||||
when:
|
when:
|
||||||
- php_enable_php_fpm
|
- php_enable_php_fpm
|
||||||
- php_fpm_state == 'started'
|
- php_fpm_state == 'started'
|
||||||
|
- not ansible_check_mode
|
||||||
|
@ -50,4 +50,7 @@
|
|||||||
name: "{{ php_fpm_daemon }}"
|
name: "{{ php_fpm_daemon }}"
|
||||||
state: "{{ php_fpm_state }}"
|
state: "{{ php_fpm_state }}"
|
||||||
enabled: "{{ php_fpm_enabled_on_boot }}"
|
enabled: "{{ php_fpm_enabled_on_boot }}"
|
||||||
when: php_enable_php_fpm and ansible_distribution != "Debian"
|
when:
|
||||||
|
- php_enable_php_fpm
|
||||||
|
- ansible_distribution != "Debian"
|
||||||
|
- not ansible_check_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user