Fix Nodejs in Kibana and rename 'repo_dic' to 'repo_dict'
This commit is contained in:
parent
a25b7d9681
commit
c772d5c983
@ -25,8 +25,11 @@ generate_CA: true
|
|||||||
ca_cert_name: ""
|
ca_cert_name: ""
|
||||||
|
|
||||||
# Nodejs
|
# Nodejs
|
||||||
node_js_repo_url: https://rpm.nodesource.com/setup_8.x
|
nodejs:
|
||||||
node_js_repo_type: rpm
|
repo_dict:
|
||||||
|
debian: "deb"
|
||||||
|
redhat: "rpm"
|
||||||
|
repo_url_ext: "nodesource.com/setup_8.x"
|
||||||
|
|
||||||
# Build from sources
|
# Build from sources
|
||||||
build_from_sources: false
|
build_from_sources: false
|
||||||
|
|||||||
@ -13,7 +13,8 @@
|
|||||||
|
|
||||||
- name: Download script to install Nodejs repository
|
- name: Download script to install Nodejs repository
|
||||||
get_url:
|
get_url:
|
||||||
url: "https://{{ node_js_repo_type }}.{{ node_js_repo_url }}"
|
nodejs['repo_dict'][ansible_os_family|lower]
|
||||||
|
url: "https://{{ nodejs['repo_dict'][ansible_os_family|lower] }}.{{ nodejs['repo_url_ext'] }}"
|
||||||
dest: "/tmp/setup_nodejs_repo.sh"
|
dest: "/tmp/setup_nodejs_repo.sh"
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
|
||||||
|
|||||||
@ -371,7 +371,7 @@ wazuh_agent_configs:
|
|||||||
format: 'eventlog'
|
format: 'eventlog'
|
||||||
|
|
||||||
nodejs:
|
nodejs:
|
||||||
repo_dic:
|
repo_dict:
|
||||||
debian: "deb"
|
debian: "deb"
|
||||||
redhat: "rpm"
|
redhat: "rpm"
|
||||||
repo_url_ext: "nodesource.com/setup_8.x"
|
repo_url_ext: "nodesource.com/setup_8.x"
|
||||||
@ -16,7 +16,7 @@
|
|||||||
block:
|
block:
|
||||||
- name: Download NodeJS repository script
|
- name: Download NodeJS repository script
|
||||||
get_url:
|
get_url:
|
||||||
url: "https://{{ nodejs['repo_dic'][ansible_os_family|lower] }}.{{ nodejs['repo_url_ext'] }}"
|
url: "https://{{ nodejs['repo_dict'][ansible_os_family|lower] }}.{{ nodejs['repo_url_ext'] }}"
|
||||||
dest: /etc/nodejs.sh
|
dest: /etc/nodejs.sh
|
||||||
mode: '0775'
|
mode: '0775'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user