mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-11-14 04:29:01 +07:00
29 files changed
+518
-79
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