Skip to content

Commit bbf3770

Browse files
author
JaSafieddine
authored
Fix user for automatic cache creation (#291)
1 parent b065e7f commit bbf3770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/config/template-config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
ansible.builtin.file:
4848
path: "{{ item.config.core.client_body_temp_path.path }}"
4949
state: directory
50-
owner: "{{ nginx_config_main_template.user | default('nginx') }}"
50+
owner: "{{ nginx_config_main_template.config.main.user.username | default('nginx') }}"
5151
mode: 0755
5252
loop: "{{ nginx_config_http_template }}"
5353
loop_control:
@@ -60,7 +60,7 @@
6060
ansible.builtin.file:
6161
path: "{{ item.1.path }}"
6262
state: directory
63-
owner: "{{ nginx_config_main_template.user | default('nginx') }}"
63+
owner: "{{ nginx_config_main_template.config.main.user.username | default('nginx') }}"
6464
mode: 0755
6565
loop: "{{ nginx_config_http_template | subelements('config.proxy.cache_path', skip_missing=True) }}"
6666
loop_control:

0 commit comments

Comments
 (0)