various update

This commit is contained in:
Ludovic Cartier
2025-11-10 11:41:54 +01:00
parent cb2ed5524f
commit f1419d8052
4 changed files with 23 additions and 22 deletions

View File

@@ -52,18 +52,16 @@
- name: 'nginx | configure nginx logs'
file:
path: "/var/log/nginx/{{ item.value.servername }}"
path: "/var/log/nginx/{{ item.value.log_path }}"
state: directory
owner: root
group: adm
loop: "{{ nginx_vhosts | dict2items }}"
loop_control:
label: "{{ item.value.servername | default([]) }}"
label: "{{ item.value.log_path | default([]) }}"
when:
- nginx_vhosts is defined
- item.value.enabled is undefined or item.value.enabled
- item.value.documentroot is defined
- item.value.documentroot != False
- item.value.log_path is undefined or item.value.log_path
notify:
- nginx reload
tags: