15 lines
339 B
YAML
15 lines
339 B
YAML
---
|
|
|
|
- name: restart php-fpm
|
|
ansible.builtin.service:
|
|
name: '{{ php_fpm_service }}'
|
|
state: restarted
|
|
when: php_install_fpm
|
|
notify: docker restart php-fpm
|
|
|
|
- name: docker restart php-fpm
|
|
ansible.builtin.command: 'service {{ php_fpm_service }} restart'
|
|
args:
|
|
warn: false
|
|
when: ansible_virtualization_type == 'docker'
|