working on more package, almost done
This commit is contained in:
@@ -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 } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user