adjusting variable names, fixing errors

This commit is contained in:
2026-03-19 21:46:04 -06:00
parent d1d556d425
commit 2d65e01f7b
38 changed files with 697 additions and 298 deletions

View File

@@ -6,26 +6,27 @@
## Methods: source
## Helpers: go_install
---
- name: Set checkmake default facts
- name: Set checkmake default facts # {{{
ansible.builtin.set_fact:
checkmake:
install_methods:
methods:
- source
go_pkg: github.com/checkmake/checkmake/cmd/checkmake
version: latest
# }}}
- name: Configure checkmake
when:
- checkmake_configured is undefined
block:
- name: Set checkmake install method
when:
- checkmake_install_method is undefined
- checkmake_imethod is undefined
ansible.builtin.set_fact:
checkmake_install_method: "{{ install_method if install_method in checkmake.install_methods else checkmake.install_methods[0] }}"
checkmake_imethod: "{{ imethod if imethod in checkmake.methods else checkmake.methods[0] }}"
- name: Configure checkmake source install
when:
- checkmake_install_method == 'source'
- checkmake_imethod == 'source'
block:
- name: Configure checkmake go install
ansible.builtin.set_fact:
@@ -37,6 +38,10 @@
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + [checkmake_go_install] }}"
- name: Finalise checkmake source install
ansible.builtin.set_fact:
checkmake_install: "{{ checkmake_imethod }}={{ checkmake_go_install }}"
- name: Set checkmake_configured
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'checkmake': checkmake_install_method } ) }}"
__configured: "{{ __configured | combine( { 'checkmake': checkmake_install } ) }}"