ansible-php/handlers/main.yml

13 lines
366 B
YAML
Raw Normal View History

2015-07-22 14:40:20 +07:00
---
2015-07-23 15:40:33 +07:00
- name: Restart php-fpm
ansible.builtin.service:
2018-03-18 23:28:57 +07:00
name: '{{ php_fpm_service }}'
state: restarted
2015-07-27 23:09:52 +07:00
when: php_install_fpm
notify: Docker restart php-fpm
2019-01-28 20:46:58 +07:00
- name: Docker restart php-fpm # noqa: command-instead-of-module no-changed-when
ansible.builtin.command: 'service {{ php_fpm_service }} restart'
2019-01-28 20:46:58 +07:00
when: ansible_virtualization_type == 'docker'