Do not run php-fpm when ansible is in check mode
This commit is contained in:
parent
2a53885145
commit
f00951fe73
|
@ -13,3 +13,4 @@
|
|||
when:
|
||||
- php_enable_php_fpm
|
||||
- php_fpm_state == 'started'
|
||||
- not ansible_check_mode
|
||||
|
|
|
@ -50,4 +50,7 @@
|
|||
name: "{{ php_fpm_daemon }}"
|
||||
state: "{{ php_fpm_state }}"
|
||||
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