fixed go package
This commit is contained in:
@@ -1,15 +1,21 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Install/update go
|
- name: Check if go is already installed
|
||||||
block:
|
ansible.builtin.stat:
|
||||||
- name: Remove existing go install
|
path: "{{ path.go }}/VERSION"
|
||||||
when:
|
register: stat_path_go
|
||||||
- ansible_system == 'Linux'
|
|
||||||
become: true
|
|
||||||
ansible.builtin.file:
|
|
||||||
state: absent
|
|
||||||
path: "{{ path.go }}"
|
|
||||||
|
|
||||||
|
- name: Check version of installed go
|
||||||
|
when:
|
||||||
|
- stat_path_go.stat.exists
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
do_go_install: "{{ not (go.vers in lookup('ansible.builtin.file', path.go ~ '/VERSION')) }}"
|
||||||
|
|
||||||
|
- name: Install/update go
|
||||||
|
when:
|
||||||
|
- (do_go_install is defined and do_go_install) or
|
||||||
|
not stat_path_go.stat.exists
|
||||||
|
block:
|
||||||
- name: Download go archive
|
- name: Download go archive
|
||||||
register: get_url_go
|
register: get_url_go
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
|
|||||||
@@ -26,5 +26,5 @@ defaults:
|
|||||||
# - paths.pipx: $PREFIX/pipx
|
# - paths.pipx: $PREFIX/pipx
|
||||||
|
|
||||||
## Extra config that usually will not need to be changed
|
## Extra config that usually will not need to be changed
|
||||||
hyprland_clean: true
|
hyprland_clean: false
|
||||||
hyprgitbase: https://github.com/hyprwm
|
hyprgitbase: https://github.com/hyprwm
|
||||||
|
|||||||
Reference in New Issue
Block a user