Squash merge move_to_single_file_pkgs into main
This commit is contained in:
20
tasks/helpers/go_install.yml
Normal file
20
tasks/helpers/go_install.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Clean existing go package {{ pkg.bin }}
|
||||
vars:
|
||||
files: "{{ pkg.files | default([]) }}"
|
||||
ansible.builtin.include_tasks: helpers/clean_install.yml
|
||||
|
||||
- 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"
|
||||
ansible.builtin.command:
|
||||
creates: "{{ pkg.bin }}"
|
||||
argv:
|
||||
- go
|
||||
- install
|
||||
- "{{ pkg.url }}"
|
||||
Reference in New Issue
Block a user