Files
ansible_role_package/tasks/go.yml
Matthew Stobbs 069c4aa49e adding tests
- stat doesn't work on remote, need to figure out a workaround
2025-02-14 22:52:53 -07:00

13 lines
278 B
YAML

---
- name: Install go packages
become: "{{ archive_become }}"
environment:
GOBIN: "{{ paths.bin }}"
PATH: "{{ paths.go }}/bin:$PATH"
ansible.builtin.command:
creates: "{{ paths.bin }}/{{ pkg.bin }}"
cmd:
- go
- install
- "{{ pkg.pkg }}"