some fixes
This commit is contained in:
parent
41c75f5519
commit
f7cfdf113b
@ -4,6 +4,6 @@ elasticsearch_node_name: node-1
|
|||||||
elasticsearch_http_port: 9200
|
elasticsearch_http_port: 9200
|
||||||
elasticsearch_network_host: 127.0.0.1
|
elasticsearch_network_host: 127.0.0.1
|
||||||
elasticsearch_jvm_xms: null
|
elasticsearch_jvm_xms: null
|
||||||
elastic_stack_version: 5.5.2
|
elastic_stack_version: 5.6.3
|
||||||
elasticsearch_shards: 5
|
elasticsearch_shards: 5
|
||||||
elasticsearch_replicas: 1
|
elasticsearch_replicas: 1
|
||||||
|
|||||||
@ -3,4 +3,4 @@ elasticsearch_http_port: "9200"
|
|||||||
elasticsearch_network_host: "127.0.0.1"
|
elasticsearch_network_host: "127.0.0.1"
|
||||||
kibana_server_host: "0.0.0.0"
|
kibana_server_host: "0.0.0.0"
|
||||||
kibana_server_port: "5601"
|
kibana_server_port: "5601"
|
||||||
elastic_stack_version: 5.5.2
|
elastic_stack_version: 5.6.3
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
tags: install
|
tags: install
|
||||||
|
|
||||||
- name: Install Wazuh-APP (can take a while)
|
- name: Install Wazuh-APP (can take a while)
|
||||||
shell: "/usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-2.1.0_{{ elastic_stack_version }}.zip"
|
shell: "/usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-2.1.1_{{ elastic_stack_version }}.zip"
|
||||||
args:
|
args:
|
||||||
creates: /usr/share/kibana/plugins/wazuh/package.json
|
creates: /usr/share/kibana/plugins/wazuh/package.json
|
||||||
notify: restart kibana
|
notify: restart kibana
|
||||||
|
|||||||
@ -6,7 +6,7 @@ elasticsearch_network_host: "127.0.0.1"
|
|||||||
elasticsearch_http_port: "9200"
|
elasticsearch_http_port: "9200"
|
||||||
elasticsearch_shards: 5
|
elasticsearch_shards: 5
|
||||||
elasticsearch_replicas: 1
|
elasticsearch_replicas: 1
|
||||||
elastic_stack_version: 5.5.2
|
elastic_stack_version: 5.6.3
|
||||||
|
|
||||||
logstash_ssl: false
|
logstash_ssl: false
|
||||||
logstash_ssl_dir: /etc/pki/logstash
|
logstash_ssl_dir: /etc/pki/logstash
|
||||||
|
|||||||
@ -13,10 +13,10 @@ wazuh_notify_time: null
|
|||||||
wazuh_time_reconnect: null
|
wazuh_time_reconnect: null
|
||||||
wazuh_winagent_config:
|
wazuh_winagent_config:
|
||||||
install_dir: 'C:\wazuh-agent\'
|
install_dir: 'C:\wazuh-agent\'
|
||||||
version: '2.1.0'
|
version: '2.1.1'
|
||||||
revision: '1'
|
revision: '1'
|
||||||
repo: https://packages.wazuh.com/windows/
|
repo: https://packages.wazuh.com/windows/
|
||||||
md5: 715fbd55f670c2cecc607f2cbd0b2310
|
md5: fd9a3ce30cd6f9f553a1bc71e74a6c9f
|
||||||
wazuh_agent_config:
|
wazuh_agent_config:
|
||||||
log_format: 'plain'
|
log_format: 'plain'
|
||||||
syscheck:
|
syscheck:
|
||||||
|
|||||||
@ -15,14 +15,14 @@
|
|||||||
|
|
||||||
- name: Windows | Downloading windows Wazuh agent installer
|
- name: Windows | Downloading windows Wazuh agent installer
|
||||||
win_get_url:
|
win_get_url:
|
||||||
dest: C:\wazuh-agent-installer.exe
|
dest: C:\wazuh-agent-installer.msi
|
||||||
url: "{{ wazuh_winagent_config.repo }}wazuh-winagent-v{{ wazuh_winagent_config.version }}-{{ wazuh_winagent_config.revision }}.exe"
|
url: "{{ wazuh_winagent_config.repo }}wazuh-agent-{{ wazuh_winagent_config.version }}-{{ wazuh_winagent_config.revision }}.msi"
|
||||||
when:
|
when:
|
||||||
- correct_version is not defined
|
- correct_version is not defined
|
||||||
|
|
||||||
- name: Windows | Verify the downloaded Wazuh agent installer
|
- name: Windows | Verify the downloaded Wazuh agent installer
|
||||||
win_stat:
|
win_stat:
|
||||||
path: C:\wazuh-agent-installer.exe
|
path: C:\wazuh-agent-installer.msi
|
||||||
get_checksum: yes
|
get_checksum: yes
|
||||||
checksum_algorithm: md5
|
checksum_algorithm: md5
|
||||||
register: installer_md5
|
register: installer_md5
|
||||||
@ -32,7 +32,7 @@
|
|||||||
- installer_md5.stat.checksum != wazuh_winagent_config.md5
|
- installer_md5.stat.checksum != wazuh_winagent_config.md5
|
||||||
|
|
||||||
- name: Windows | Install Wazuh agent
|
- name: Windows | Install Wazuh agent
|
||||||
win_shell: C:\wazuh-agent-installer.exe /S /D={{ wazuh_winagent_config.install_dir }}
|
win_shell: C:\wazuh-agent-installer.exe /q APPLICATIONFOLDER={{ wazuh_winagent_config.install_dir }}
|
||||||
when:
|
when:
|
||||||
- correct_version is not defined
|
- correct_version is not defined
|
||||||
|
|
||||||
@ -75,5 +75,5 @@
|
|||||||
|
|
||||||
- name: Windows | Delete downloaded Wazuh agent installer file
|
- name: Windows | Delete downloaded Wazuh agent installer file
|
||||||
win_file:
|
win_file:
|
||||||
path: C:\wazuh-agent-installer.exe
|
path: C:\wazuh-agent-installer.msi
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user