From d7b3463a79a50dc81d28d530c5212a1749efbb15 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 24 Jan 2026 00:33:50 +0100 Subject: Fix ansible 2.20.1 deprecation warning about ansible_vars --- roles/go/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/go') diff --git a/roles/go/tasks/main.yml b/roles/go/tasks/main.yml index f29e6c2d..06f4308f 100644 --- a/roles/go/tasks/main.yml +++ b/roles/go/tasks/main.yml @@ -11,8 +11,8 @@ block: - name: "Set go facts" ansible.builtin.set_fact: - go_arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}" - go_platform: "{{ ansible_system | lower }}" + go_arch: "{{ 'amd64' if ansible_facts['architecture'] == 'x86_64' else 'arm64' }}" + go_platform: "{{ ansible_facts['system'] | lower }}" - name: "Download Go" ansible.builtin.get_url: @@ -29,7 +29,7 @@ - name: "Add Go to shell profile" ansible.builtin.blockinfile: - path: "{{ ansible_env.HOME }}/.bashrc" + path: "{{ ansible_facts['env'].HOME }}/.bashrc" state: "present" prepend_newline: true append_newline: true -- cgit v1.2.3