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: ""
|
||||
|
||||
# Nodejs
|
||||
node_js_repo_url: https://rpm.nodesource.com/setup_8.x
|
||||
node_js_repo_type: rpm
|
||||
nodejs:
|
||||
repo_dict:
|
||||
debian: "deb"
|
||||
redhat: "rpm"
|
||||
repo_url_ext: "nodesource.com/setup_8.x"
|
||||
|
||||
# Build from sources
|
||||
build_from_sources: false
|
||||
|
||||
@ -13,7 +13,8 @@
|
||||
|
||||
- name: Download script to install Nodejs repository
|
||||
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"
|
||||
mode: "0700"
|
||||
|
||||
|
||||
@ -371,7 +371,7 @@ wazuh_agent_configs:
|
||||
format: 'eventlog'
|
||||
|
||||
nodejs:
|
||||
repo_dic:
|
||||
repo_dict:
|
||||
debian: "deb"
|
||||
redhat: "rpm"
|
||||
repo_url_ext: "nodesource.com/setup_8.x"
|
||||
@ -16,7 +16,7 @@
|
||||
block:
|
||||
- name: Download NodeJS repository script
|
||||
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
|
||||
mode: '0775'
|
||||
changed_when: false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user