go_install helper now being used

This commit is contained in:
Matthew Stobbs
2026-02-11 10:50:48 -07:00
parent b6f7ba485b
commit 3df63f1451
7 changed files with 190 additions and 186 deletions

View File

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