Add dpeendencies to Wazuh API. Update nodejs repo installation
This commit is contained in:
parent
8d667131d9
commit
df56764dbd
@ -83,7 +83,7 @@
|
|||||||
mode: '644'
|
mode: '644'
|
||||||
|
|
||||||
- name: Executing "install.sh" script to build and install the Wazuh Manager
|
- name: Executing "install.sh" script to build and install the Wazuh Manager
|
||||||
shell: ./install.sh > /tmp/build_manager_log.txt
|
shell: ./install.sh > /tmp/build_wazuh_manager_log.txt
|
||||||
register: installation_result
|
register: installation_result
|
||||||
changed_when: installation_result == 0
|
changed_when: installation_result == 0
|
||||||
args:
|
args:
|
||||||
@ -102,14 +102,31 @@
|
|||||||
|
|
||||||
- name: Install Wazuh API from sources
|
- name: Install Wazuh API from sources
|
||||||
block:
|
block:
|
||||||
|
- name: Install dependencies to build Wazuh packages
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- make
|
||||||
|
- gcc
|
||||||
|
- automake
|
||||||
|
- autoconf
|
||||||
|
- libtool
|
||||||
|
- tar
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Ensure Git is present in the host
|
- name: Ensure Git is present in the host
|
||||||
package:
|
package:
|
||||||
name: git
|
name: git
|
||||||
state: present
|
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
|
- name: Download script to install Nodejs repository
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ node_js_repository_url }}"
|
url: "https://{{ node_js_repo_type }}.{{ node_js_repo_url }}"
|
||||||
dest: "/tmp/setup_nodejs_repo.sh"
|
dest: "/tmp/setup_nodejs_repo.sh"
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
|
||||||
@ -148,7 +165,7 @@
|
|||||||
mode: '644'
|
mode: '644'
|
||||||
|
|
||||||
- name: Execute Wazuh API installation script
|
- name: Execute Wazuh API installation script
|
||||||
shell: ./install_api.sh > /tmp/build_api_log.txt
|
shell: ./install_api.sh > /tmp/build_wazuh_api_log.txt
|
||||||
register: install_api
|
register: install_api
|
||||||
changed_when: install_api.rc == 0
|
changed_when: install_api.rc == 0
|
||||||
args:
|
args:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user