fix: rely on logical ansible_user instead of this whoami hack

This commit is contained in:
Clément Désiles
2025-11-14 00:09:51 +01:00
parent 26dc670949
commit 8b40b4d676
6 changed files with 51 additions and 52 deletions
+2 -2
View File
@@ -14,6 +14,6 @@
ansible.builtin.file:
path: "{{ docker_projects_dir }}"
state: absent
owner: "{{ main_user }}"
group: "{{ main_user }}"
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
when: confirmation.user_input | lower in ['yes', 'y']