always do go install
- need to figure out how to fix go install
This commit is contained in:
@@ -1,20 +1,20 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- 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 }}/VERSION"
|
||||||
register: stat_path_go
|
# register: stat_path_go
|
||||||
|
#
|
||||||
- name: Check version of installed go
|
# - name: Check version of installed go
|
||||||
when:
|
# when:
|
||||||
- stat_path_go.stat.exists
|
# - stat_path_go.stat.exists
|
||||||
ansible.builtin.set_fact:
|
# ansible.builtin.set_fact:
|
||||||
do_go_install: "{{ not (go.vers in lookup('ansible.builtin.file', path.go ~ '/VERSION')) }}"
|
# do_go_install: "{{ not (go.vers in lookup('ansible.builtin.file', path.go ~ '/VERSION')) }}"
|
||||||
|
|
||||||
- name: Install/update go
|
- name: Install/update go
|
||||||
when:
|
# when:
|
||||||
- (do_go_install is defined and do_go_install) or
|
# - (do_go_install is defined and do_go_install) or
|
||||||
not stat_path_go.stat.exists
|
# not stat_path_go.stat.exists
|
||||||
block:
|
block:
|
||||||
- name: Download go archive
|
- name: Download go archive
|
||||||
register: get_url_go
|
register: get_url_go
|
||||||
|
|||||||
Reference in New Issue
Block a user