diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-24 00:33:50 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-24 01:03:37 +0100 |
| commit | d7b3463a79a50dc81d28d530c5212a1749efbb15 (patch) | |
| tree | 198f009230b71c23275400826a2f60e50f01360a /roles/podman | |
| parent | 4b9d5e3318d4de8df862f3794c6bc85eba6f8942 (diff) | |
Fix ansible 2.20.1 deprecation warning about ansible_vars
Diffstat (limited to 'roles/podman')
| -rw-r--r-- | roles/podman/tasks/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/podman/tasks/main.yml b/roles/podman/tasks/main.yml index 74b608ee..a9b555f4 100644 --- a/roles/podman/tasks/main.yml +++ b/roles/podman/tasks/main.yml @@ -14,20 +14,20 @@ - name: "Configure Podman for rootless operation" ansible.builtin.command: - cmd: "loginctl enable-linger {{ ansible_user_uid }}" + cmd: "loginctl enable-linger {{ ansible_facts['user_uid'] }}" become: true changed_when: false failed_when: false - name: "Create containers configuration directory" ansible.builtin.file: - path: "{{ ansible_env.HOME }}/.config/containers" + path: "{{ ansible_facts['env'].HOME }}/.config/containers" state: "directory" mode: "0755" - name: "Configure Podman containers.conf" ansible.builtin.copy: - dest: "{{ ansible_env.HOME }}/.config/containers/containers.conf" + dest: "{{ ansible_facts['env'].HOME }}/.config/containers/containers.conf" mode: "0644" content: | [containers] |
