Update "installation_from_sources" to fix linting errors

This commit is contained in:
Jose M 2019-11-20 19:06:48 +01:00
parent 571abfbb2c
commit 9d62860ea1

View File

@ -80,7 +80,9 @@
mode: "0700" mode: "0700"
- name: Execute downloaded script to install Nodejs repo - name: Execute downloaded script to install Nodejs repo
shell: /tmp/setup_nodejs_repo.sh command: /tmp/setup_nodejs_repo.sh
register: node_repo_installation_result
changed_when: node_repo_installation_result.rc == 0
- name: Install Nodejs - name: Install Nodejs
package: package:
@ -88,7 +90,9 @@
state: present state: present
- name: Run NPM under root account - name: Run NPM under root account
shell: npm config set user 0 command: npm config set user 0
register: allow_root_npm
changed_when: allow_root_npm.rc == 0
- name: Download the installation script to install Wazuh API - name: Download the installation script to install Wazuh API
get_url: get_url:
@ -97,4 +101,6 @@
mode: "0700" mode: "0700"
- name: Execute Wazuh API installation script - name: Execute Wazuh API installation script
shell: /tmp/install_api.sh download command: /tmp/install_api.sh download
register: install_api
changed_when: install_api.rc == 0