summaryrefslogtreecommitdiffstats
path: root/roles/ssh/tasks
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-01-24 16:24:28 +0100
committerAhmed AbdelHalim <[email protected]>2026-01-24 16:24:28 +0100
commitab9b04baac2970fdcea9999e2bcfd7d60d3fc23d (patch)
tree7fcc3918e290e31309d74eb0b784fa6a00318ee3 /roles/ssh/tasks
parent3cf08783dec1d6c5f9e2a7933e730b054d78e376 (diff)
Fix ansible_facts to use only bracket notation instead of dot notation
Co-authored-by: claude.ai
Diffstat (limited to 'roles/ssh/tasks')
-rw-r--r--roles/ssh/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml
index cb798c1e..30aa6b9f 100644
--- a/roles/ssh/tasks/main.yml
+++ b/roles/ssh/tasks/main.yml
@@ -99,7 +99,7 @@
ansible.builtin.known_hosts:
name: "{{ item.split(' ') | first }}"
key: "{{ item }}"
- path: "{{ ansible_facts['env'].HOME }}/.ssh/known_hosts"
+ path: "{{ ansible_facts['env']['HOME'] }}/.ssh/known_hosts"
state: present
loop: "{{ ssh_known_hosts }}"
when: ssh_known_hosts is defined and ssh_known_hosts | length > 0