Merge pull request #315 from wazuh/bugfix-314-kibana-become-user

Enable allow-root flag for kibana-plugin
This commit is contained in:
Manuel J. Bernal 2019-11-08 13:24:12 +01:00 committed by GitHub
commit 2fc9bc90dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,14 +98,14 @@
tags: install
- name: Install Wazuh-APP (can take a while)
shell: "/usr/share/kibana/bin/kibana-plugin install {{ wazuh_app_url }}-{{ wazuh_version }}_{{ elastic_stack_version }}.zip"
shell: |
/usr/share/kibana/bin/kibana-plugin --allow-root install \
https://packages.wazuh.com/wazuhapp/wazuhapp-{{ wazuh_version }}_{{ elastic_stack_version }}.zip
environment:
NODE_OPTIONS: "--max-old-space-size=3072"
args:
executable: /bin/bash
creates: /usr/share/kibana/plugins/wazuh/package.json
become: yes
become_user: kibana
notify: restart kibana
tags:
- install