Skip to content
Snippets Groups Projects
Commit 27ad6e0f authored by jurgenhaas's avatar jurgenhaas
Browse files

Revert to the correct env variable for the current user and default to root...

Revert to the correct env variable for the current user and default to root which is required during initial setup
parent d463514a
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
- name: "Set directory permissions to current user"
file:
path: '/etc/letsencrypt'
owner: '{{ ansible_env.USER }}'
owner: '{{ ansible_env.SUDO_USER|default("root") }}'
recurse: yes
follow: no
when: proxy_active|default(true)
......
......@@ -9,7 +9,7 @@
- name: "Set directory permissions to current user"
file:
path: '{{ item }}'
owner: '{{ ansible_env.USER }}'
owner: '{{ ansible_env.SUDO_USER|default("root") }}'
recurse: yes
follow: no
with_items:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment