Fix Nodejs in Kibana and rename 'repo_dic' to 'repo_dict'

This commit is contained in:
Jose M 2019-11-26 15:00:22 +01:00
parent a25b7d9681
commit c772d5c983
4 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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