Parameterize NodeJS repo. url
This commit is contained in:
parent
565a84c49f
commit
e003a2d51e
@ -326,6 +326,8 @@ wazuh_agent_configs:
|
||||
format: 'eventchannel'
|
||||
- location: 'System'
|
||||
format: 'eventlog'
|
||||
repo_dic:
|
||||
debian: "deb"
|
||||
redhat: "rpm"
|
||||
nodejs:
|
||||
repo_dic:
|
||||
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://{{ repo_dic[ansible_os_family|lower] }}.nodesource.com/setup_8.x"
|
||||
url: "https://{{ nodejs['repo_dic'][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