Files
ansible_role_package/tasks/helpers/go.yml
Matthew Stobbs 81a1dd7469 working on go
Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
2026-02-02 17:06:31 -07:00

18 lines
385 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Install go packages
become: "{{ install_become }}"
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 }}"
argv:
- go
- install
- "{{ current.url }}"