Use FQCN builtins

This commit is contained in:
Emilien Mantel
2021-08-31 13:02:57 +02:00
parent 57aee1fbc4
commit a6e75032a5
11 changed files with 80 additions and 63 deletions

View File

@@ -1,14 +1,14 @@
---
- name: restart php-fpm
service:
ansible.builtin.service:
name: '{{ php_fpm_service }}'
state: restarted
when: php_install_fpm
notify: docker restart php-fpm
- name: docker restart php-fpm
command: 'service {{ php_fpm_service }} restart'
ansible.builtin.command: 'service {{ php_fpm_service }} restart'
args:
warn: false
when: ansible_virtualization_type == 'docker'