reorganizing configuration
- static package configuration in `vars/pkgs` - loaded into the variable `pkgconfig` as part of `tasks/main.yml`
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
version: 1.23.6
|
||||
install_path: "{{ default_install_prefix }}"
|
||||
- name: Set go configuration
|
||||
ansible.builtin.set_fact:
|
||||
do_install_go: false # defaults to false to save on having to set facts needlessly
|
||||
go:
|
||||
ver: "{{ pkgconfig.go.version }}"
|
||||
arch: "{{ pkgconfig_go.archmap[ansible_architecture] }}"
|
||||
sys: "{{ ansible_system | lower }}"
|
||||
ext: "{{ pkgconfig.go.extmap[ansible_system] }}"
|
||||
|
||||
- name: Set go composite facts
|
||||
ansible.builtin.set_fact:
|
||||
go:
|
||||
ver: "{{ go.ver }}"
|
||||
arch: "{{ go.arch }}"
|
||||
sys: "{{ go.sys }}"
|
||||
ext: "{{ go.ext }}"
|
||||
archive: "go{{ go.ver }}.{{ go.sys }}-{{ go.arch }}.{{ pkgconfig_go.extmap[ansible_system] }}"
|
||||
sum: "{{ pkgconfig.go.sums[go.ver][ansible_system][go.arch] }}"
|
||||
url: "{{ pkgconfig.go.base_url }}/{{ go.archive }}"
|
||||
inst_path: "{{ paths.install }}/go"
|
||||
|
||||
Reference in New Issue
Block a user