initial changes

This commit is contained in:
Rshad Zhran 2019-08-09 16:45:23 +02:00
parent c171f3905b
commit 69427edea6
2 changed files with 18 additions and 0 deletions

View File

@ -43,3 +43,8 @@ node_certs_destination: /etc/filebeat/certs
rsync_path: /usr/bin/rsync
rsync_user: vagrant
rsync_extra_parameters: -avg -e 'ssh -o StrictHostKeyChecking=no' --rsync-path='sudo rsync'
filebeat_module_package_name: wazuh-filebeat-0.1.tar.gz
filebeat_module_package_path: /root/
filebeat_module_destination: /usr/share/filebeat/module
filebeat_module_folder: /usr/share/filebeat/module/wazuh

View File

@ -88,6 +88,19 @@
- filebeat_xpack_security
tags: xpack-security
- name: Download Filebeat module package
get_url:
url: https://packages-dev.wazuh.com/3.x/filebeat/{{ filebeat_module_package_name }}
dest: "{{ filebeat_module_package_path }}"
- name: Unpakcaging Filebeat module package
unarchive:
src: "{{ filebeat_module_package_path }}/{{ filebeat_module_package_name }}"
dest: "{{ filebeat_module_destination }}"
- name: Setting 0755 permission for Filebeat module folder
file: dest={{ filebeat_module_folder }} mode=u=rwX,g=rwX,o=rwX recurse=yes
- import_tasks: config.yml
when: filebeat_create_config
notify: restart filebeat