Introduce more variables

This commit is contained in:
phil 2023-02-25 21:25:34 +01:00
parent cfdc088844
commit 4bb9eb3870
4 changed files with 23 additions and 23 deletions

View file

@ -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