From ab9b04baac2970fdcea9999e2bcfd7d60d3fc23d Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Sat, 24 Jan 2026 16:24:28 +0100 Subject: Fix ansible_facts to use only bracket notation instead of dot notation Co-authored-by: claude.ai --- roles/bash/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/bash/tasks') diff --git a/roles/bash/tasks/main.yml b/roles/bash/tasks/main.yml index fbecafa6..4af7dc40 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_facts['env'].HOME }}/.bashrc" - - "{{ ansible_facts['env'].HOME }}/.bash_profile" - - "{{ ansible_facts['env'].HOME }}/.profile" + - "{{ ansible_facts['env']['HOME'] }}/.bashrc" + - "{{ ansible_facts['env']['HOME'] }}/.bash_profile" + - "{{ ansible_facts['env']['HOME'] }}/.profile" -- cgit v1.2.3