Nginx variable refactoring and general bug solving. Got interupted commit not tested

This commit is contained in:
2025-01-31 13:14:07 +01:00
parent b96d95f3e4
commit 11752f5e2e
23 changed files with 59 additions and 48 deletions

View File

@@ -11,15 +11,19 @@
notify: restart nginx
when: run_once_nginx is not defined and nginx_matomo_tracking | bool
- name: "Delete {{nginx.directories.configuration}} directory, when mode_reset"
file:
path: "{{ nginx.directories.configuration }}"
state: absent
when: mode_reset and run_once_nginx is not defined
- name: Ensure nginx configuration directories are present
file:
path: "{{ item }}"
state: directory
mode: '0755'
loop:
- "{{nginx_servers_directory}}"
- "{{nginx_maps_directory}}"
- "{{nginx_streams_directory}}"
recurse: yes
loop: "{{ nginx.directories.http + nginx.directories.streams }}"
when: run_once_nginx is not defined
- name: create nginx config file