Fix some handlers

fix_lint
Emilien Mantel 2022-10-06 14:28:40 +02:00
parent fc04f1e15a
commit 701697984e
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
name: '{{ php_fpm_service }}'
state: restarted
when: php_install_fpm
notify: docker restart php-fpm
notify: Docker restart php-fpm
- name: Docker restart php-fpm
ansible.builtin.command: 'service {{ php_fpm_service }} restart'

View File

@ -51,20 +51,20 @@
mode: 0644
owner: root
group: root
notify: reload nginx
notify: Reload nginx
- name: COMMAND | Fix nginx config
ansible.builtin.command: "cp {{ __nginx_conf | dirname }}/fastcgi_params {{ __nginx_conf | dirname }}/fastcgi.conf"
args:
creates: "{{ __nginx_conf | dirname }}/fastcgi.conf"
notify: reload nginx
notify: Reload nginx
- name: LINEINFILE | Fix nginx config (second step)
ansible.builtin.lineinfile:
regexp: '^fastcgi_param\s+SCRIPT_FILENAME'
line: "fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;"
dest: "{{ __nginx_conf | dirname }}/fastcgi.conf"
notify: reload nginx
notify: Reload nginx
- name: SERVICE | Ensure nginx is started
ansible.builtin.service: