- giving things a better structure - better documentation with the way things need to be as a standard
18 lines
385 B
YAML
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 }}"
|