mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-02-24 09:23:29 +07:00
🚨 Fix crashes on latest ansible versions and fixes lint
This commit is contained in:
@@ -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