reorganizing configuration

- static package configuration in `vars/pkgs`
  - loaded into the variable `pkgconfig` as part of `tasks/main.yml`
This commit is contained in:
Matthew Stobbs
2025-02-12 12:52:55 -07:00
parent 9250145116
commit a3df5215b8
23 changed files with 259 additions and 226 deletions

7
tasks/config/air.yml Normal file
View File

@@ -0,0 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- name: Set configuration for air
ansible.builtin.set_fact:
air:
ver: "{{ pkgconfig.air.version }}"
pkg: "{{ pkgconfig.air.git_repo }}@{{ pkgconfig.air.version }}"

View File

@@ -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"