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

@@ -9,8 +9,9 @@
- name: Set cmake default facts # {{
ansible.builtin.set_fact:
cmake:
install_methods:
methods:
- system
pkgname: cmake
# }}
- name: Configure cmake
when:
@@ -18,18 +19,22 @@
block:
- name: Set cmake install method
when:
- cmake_install_method is undefined
- cmake_imethod is undefined
ansible.builtin.set_fact:
cmake_install_method: "{{ install_method if install_method in cmake.install_methods else cmake.install_methods[0] }}"
cmake_imethod: "{{ imethod if imethod in cmake.methods else cmake.methods[0] }}"
- name: Configure cmake system install
when:
- cmake_install_method == "system"
- cmake_imethod == "system"
block:
- name: Append cmake to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['cmake'] }}"
pkg_sys: "{{ pkg_sys + [cmake.pkgname] }}"
- name: Finalise cmake system install
ansible.builtin.set_fact:
cmake_install: "{{ cmake_imethod }}={{ cmake.pkgname }}"
- name: Finalize cmake configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'cmake': cmake_install_method } ) }}"
__configured: "{{ __configured | combine( { 'cmake': cmake_install } ) }}"