Introduce more variables
This commit is contained in:
parent
cfdc088844
commit
4bb9eb3870
4 changed files with 23 additions and 23 deletions
|
@ -39,21 +39,14 @@
|
|||
when: "'php-fpm' in ansible_facts.packages"
|
||||
notify: reload php-fpm
|
||||
|
||||
- name: "PHP | Copy template for PHP-FPM systemd socket"
|
||||
ansible.builtin.copy:
|
||||
src: systemd/php-fpm@.socket
|
||||
dest: /etc/systemd/system/php-fpm@.socket
|
||||
mode: 0644
|
||||
notify:
|
||||
- stop php-fpm-socket
|
||||
- stop php-fpm-service
|
||||
- start php-fpm-socket
|
||||
|
||||
- name: "PHP | Copy template for PHP-FPM systemd service"
|
||||
- name: "PHP | Copy template for PHP-FPM systemd service and socket"
|
||||
ansible.builtin.template:
|
||||
src: systemd/php-fpm@.service
|
||||
dest: /etc/systemd/system/php-fpm@.service
|
||||
src: "systemd/{{ item }}"
|
||||
dest: "/etc/systemd/system/{{ item }}"
|
||||
mode: 0644
|
||||
loop:
|
||||
- php-fpm@.service
|
||||
- php-fpm@.socket
|
||||
notify:
|
||||
- stop php-fpm-socket
|
||||
- stop php-fpm-service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue