working on more package, almost done

This commit is contained in:
2026-03-27 20:34:40 -06:00
parent 4a638d9dcc
commit 7f00bb70dc
21 changed files with 122 additions and 80 deletions

View File

@@ -3,7 +3,7 @@
- name: Set go default facts # {{{
ansible.builtin.set_fact:
go:
install_methods:
methods:
- archive
- system
pkgname:
@@ -51,13 +51,13 @@
block:
- name: Configure go install method
when:
- go_install_method is undefined
- go_imethod is undefined
ansible.builtin.set_fact:
go_install_method: "{{ install_method if install_method in go.install_methods else go.install_methods[0] }}"
go_imethod: "{{ imethod if imethod in go.methods else go.methods[0] }}"
- name: Configure go system installation
when:
- go_install_method == 'system'
- go_imethod == 'system'
block:
- name: Set go pkgname
ansible.builtin.set_fact:
@@ -75,7 +75,7 @@
- name: Configure go archive installation
when:
- go_install_method == 'archive'
- go_imethod == 'archive'
block:
- name: Configure go
ansible.builtin.set_fact:
@@ -114,4 +114,4 @@
- name: Finalise go configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'go': go_install_method } ) }}"
__configured: "{{ __configured | combine( { 'go': go_imethod } ) }}"