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,31 +6,35 @@
## Methods: system
## Helpers: -
---
- name: Set cmakelang default facts
- name: Set cmakelang default facts # {{{
ansible.builtin.set_fact:
cmakelang:
install_methods:
methods:
- system
pkgname: cmakelang
# }}}
- name: Add cmakelang
when:
- "'cmakelang' not in __configured"
block:
- name: Set cmakelang install method
when:
- cmakelang_install_method is undefined
- cmakelang_imethod is undefined
ansible.builtin.set_fact:
cmakelang_install_method: "{{ install_method if install_method in cmakelang.install_methods else cmakelang.install_methods[0] }}"
cmakelang_imethod: "{{ imethod if imethod in cmakelang.methods else cmakelang.methods[0] }}"
- name: Configure cmakelang system install
when:
- cmakelang_install_method == 'system'
- cmakelang_imethod == 'system'
block:
- name: Queue cmakelang for system install
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [cmakelang.pkgname] }}"
- name: Finalise cmakelang system install
ansible.builtin.set_fact:
cmakelang_install: "{{ cmakelang_imethod }}={{ cmakelang.pkgname }}"
- name: Finalise cmakelang configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'cmakelang': cmakelang_install_method } ) }}"
__configured: "{{ __configured | combine( { 'cmakelang': cmakelang_install } ) }}"