summaryrefslogtreecommitdiffstats
path: root/roles/bash
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-24 00:33:50 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-24 01:03:37 +0100
commitd7b3463a79a50dc81d28d530c5212a1749efbb15 (patch)
tree198f009230b71c23275400826a2f60e50f01360a /roles/bash
parent4b9d5e3318d4de8df862f3794c6bc85eba6f8942 (diff)
Fix ansible 2.20.1 deprecation warning about ansible_vars
Diffstat (limited to 'roles/bash')
-rw-r--r--roles/bash/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/bash/tasks/main.yml b/roles/bash/tasks/main.yml
index 475581ee..fbecafa6 100644
--- a/roles/bash/tasks/main.yml
+++ b/roles/bash/tasks/main.yml
@@ -14,6 +14,6 @@
modification_time: "preserve"
access_time: "preserve"
loop:
- - "{{ ansible_env.HOME }}/.bashrc"
- - "{{ ansible_env.HOME }}/.bash_profile"
- - "{{ ansible_env.HOME }}/.profile"
+ - "{{ ansible_facts['env'].HOME }}/.bashrc"
+ - "{{ ansible_facts['env'].HOME }}/.bash_profile"
+ - "{{ ansible_facts['env'].HOME }}/.profile"