mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-10-25 04:14:04 +07:00
🚨 Fix crashes on latest ansible versions and fixes lint
This commit is contained in:
1 parent
483b6c78b5
commit
85378ac422
3 files changed
+3
-18
No files matched your search
+2
-6
@@ -114,16 +114,12 @@
|
||||
when: php_install_fpm and ansible_virtualization_type == 'docker'
|
||||
block:
|
||||
|
||||
- name: COMMAND | Check if PHP-FPM is started (Docker)
|
||||
- name: COMMAND | Check if PHP-FPM is started (Docker) # noqa: command-instead-of-module
|
||||
ansible.builtin.command: 'service {{ php_fpm_service }} status'
|
||||
args:
|
||||
warn: false
|
||||
register: dps
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: COMMAND | Ensure PHP-FPM is started (Docker)
|
||||
- name: COMMAND | Ensure PHP-FPM is started (Docker) # noqa: command-instead-of-module no-changed-when
|
||||
ansible.builtin.command: 'service {{ php_fpm_service }} start'
|
||||
args:
|
||||
warn: false
|
||||
when: dps.stdout.find('is not running') != -1
|
||||
Reference in new issue
Block a user