Add custom repo for Wazuh Plugin Kibana installation app

This commit is contained in:
Jose M 2019-11-25 15:45:37 +01:00
parent 329910eb41
commit c988e6220e

View File

@ -5,9 +5,15 @@
name: git
state: present
- name: Modify repo url if host is in Debian family
set_fact:
node_js_repo_type: deb
when:
- ansible_os_family | lower == "debian"
- name: Download script to install Nodejs repository
get_url:
url: "{{ node_js_repository_url }}"
url: "https://{{ node_js_repo_type }}.{{ node_js_repo_url }}"
dest: "/tmp/setup_nodejs_repo.sh"
mode: "0700"