hopefully fix go update check

This commit is contained in:
Matthew Stobbs
2025-09-02 21:01:41 -06:00
parent dc1c3fba9e
commit 2b81d8a88a

View File

@@ -2,7 +2,7 @@
--- ---
- name: Check if go is already installed - name: Check if go is already installed
ansible.builtin.stat: ansible.builtin.stat:
path: "{{ path.go }}/VERSION" path: "{{ path.go }}/bin/go"
register: stat_path_go register: stat_path_go
- name: Check installed go version - name: Check installed go version
@@ -17,11 +17,8 @@
- version - version
- name: Check if go needs updating - name: Check if go needs updating
when:
- r_go_version.rc|int == 0
- r_go_version.stdout.find(go.vers) == -1
ansible.builtin.set_fact: ansible.builtin.set_fact:
go_do_update: true go_do_update: "{{ r_go_version.stdout.find(go.vers) == -1 }}"
- name: Install/update go - name: Install/update go
when: when: