Update to 2024-01-08 11:00

This commit is contained in:
Daniel Berteaud
2024-01-08 11:00:40 +01:00
parent 1c9964d5d2
commit 5eec0682a0
6 changed files with 83 additions and 35 deletions

View File

@@ -40,19 +40,39 @@
dest: /etc/nginx/ansible_location.d/10-llng_handler.conf
- src: llng_headers.inc.j2
dest: /etc/nginx/ansible_conf.d/llng_headers.inc
when: llng_handler == True
when: llng_handler
notify: reload nginx
tags: web
- name: Remove handler's nginx configuration
file: path={{ item }} state=absent
loop:
- /etc/nginx/ansible_location.d/10-llng_handler.conf
- /etc/nginx/ansible_conf.d/llng_headers.inc
when: not llng_handler
notify: reload nginx
tags: web
- name: Deploy portal's nginx configuration
template: src=nginx_portal.conf.j2 dest=/etc/nginx/ansible_conf.d/22-llng_portal.conf
when: llng_portal == True
when: llng_portal
notify: reload nginx
tags: web
- name: Remove portal's nginx configuration
file: path=/etc/nginx/ansible_conf.d/22-llng_portal.conf state=absent
when: not llng_portal
notify: reload nginx
tags: web
- name: Deploy manager's nginx configuration
template: src=nginx_manager.conf.j2 dest=/etc/nginx/ansible_conf.d/23-llng_manager.conf
when: llng_manager == True
when: llng_manager and llng_server == 'nginx'
notify: reload nginx
tags: web
- name: Remove manager's nginx configuration
file: path=/etc/nginx/ansible_conf.d/23-llng_manager.conf state=absent
when: not llng_manager and llng_server == 'nginx'
notify: reload nginx
tags: web