hopefully fix go update check
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
---
|
||||
- name: Check if go is already installed
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.go }}/VERSION"
|
||||
path: "{{ path.go }}/bin/go"
|
||||
register: stat_path_go
|
||||
|
||||
- name: Check installed go version
|
||||
@@ -17,11 +17,8 @@
|
||||
- version
|
||||
|
||||
- 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:
|
||||
go_do_update: true
|
||||
go_do_update: "{{ r_go_version.stdout.find(go.vers) == -1 }}"
|
||||
|
||||
- name: Install/update go
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user