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

@@ -9,7 +9,7 @@
- name: Set nodejs default facts
ansible.builtin.set_fact:
nodejs:
install_methods:
methods:
- system
pkgname:
RedHat: [nodejs]
@@ -24,13 +24,13 @@
block:
- name: Set nodejs install method
when:
- nodejs_install_method is undefined
- nodejs_imethod is undefined
ansible.builtin.set_fact:
nodejs_install_method: "{{ install_method if install_method in nodejs.install_methods else nodejs.install_methods[0] }}"
nodejs_imethod: "{{ imethod if imethod in nodejs.methods else nodejs.methods[0] }}"
- name: Configure nodejs system install
when:
- nodejs_install_method == "system"
- nodejs_imethod == "system"
block:
- name: Set nodejs package name
ansible.builtin.set_fact:
@@ -41,4 +41,4 @@
- name: Finalize nodejs configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'nodejs': nodejs_install_method } ) }}"
__configured: "{{ __configured | combine( { 'nodejs': nodejs_imethod } ) }}"