Update proxy role to comply with linting

This commit is contained in:
2023-11-03 00:47:06 -04:00
parent ef812c1877
commit 598359854f
2 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,15 @@
- name: Enable nginx sites configuration
ansible.builtin.file:
src: "/etc/nginx/sites-available/{{ item.item.domain }}.conf"
dest: "/etc/nginx/sites-enabled/{{ item.item.domain }}.conf"
state: link
mode: "400"
loop: "{{ nginx_sites.results }}"
when: item.changed
listen: reload_nginx
- name: Reload nginx
ansible.builtin.service:
name: nginx
state: reloaded
listen: reload_nginx
listen: reload_nginx