working on go

Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
This commit is contained in:
Matthew Stobbs
2026-02-02 17:06:31 -07:00
parent b9fdf03298
commit 81a1dd7469
9 changed files with 237 additions and 147 deletions

View File

@@ -1,9 +1,17 @@
# vim: set filetype=yaml.ansible :
---
- name: Install go package {{ pkg }}
become: "{{ ext_become }}"
- name: Install go packages
become: "{{ install_become }}"
environment:
GOBIN: "{{ path.bin }}"
PATH: "{{ path.go }}/bin:$PATH"
GOBIN: "{{ path_bin }}"
GOROOT: "{{ path_go }}"
PATH: "{{ path_go }}/bin:$PATH"
loop: pkg_go
loop_control:
loop_var: current
ansible.builtin.command:
cmd: go install {{ pkg }}
creates: "{{ current.bin }}"
argv:
- go
- install
- "{{ current.url }}"