Further feature implementation for flock.town

This commit is contained in:
2025-02-19 22:03:17 +01:00
parent dfa740456f
commit 7d24e1d414
20 changed files with 424 additions and 143 deletions

View File

@@ -14,9 +14,28 @@
file:
path: "{{ item }}"
state: directory
owner: "{{nginx.user}}"
group: "{{nginx.user}}"
mode: '0755'
recurse: yes
loop: "{{ nginx.directories.http.values() | list + [nginx.directories.streams] }}"
loop: >
{{
[ nginx.directories.configuration ] +
(nginx.directories.http.values() | list) +
[ nginx.directories.streams ]
}}
when: run_once_nginx is not defined
- name: Ensure nginx data storage directories are present
file:
path: "{{ item }}"
state: directory
recurse: yes
owner: "{{nginx.user}}"
group: "{{nginx.user}}"
mode: '0755'
loop: >
{{ nginx.directories.data.values() | list }}
when: run_once_nginx is not defined
- name: create nginx config file