Lint changes
This commit is contained in:
parent
cb8f330da4
commit
fdc3b0f55c
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: restart elasticsearch
|
||||
service:
|
||||
service:
|
||||
name: elasticsearch
|
||||
state: restarted
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
|
||||
- name: RedHat/CentOS/Fedora | Install OpenJDK 11
|
||||
yum:
|
||||
name: java-11-openjdk-devel
|
||||
name: java-11-openjdk-devel
|
||||
state: present
|
||||
|
||||
- name: RedHat/CentOS/Fedora | Install OpenDistro dependencies
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
path: "{{ local_certs_path }}"
|
||||
state: directory
|
||||
run_once: true
|
||||
|
||||
|
||||
- name: Local action | Download certificates generation tool
|
||||
local_action:
|
||||
module: get_url
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
- name: Local action | Check if root CA file exists
|
||||
local_action:
|
||||
module: stat
|
||||
module: stat
|
||||
path: "{{ local_certs_path }}/config/root-ca.key"
|
||||
register: root_ca_file
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
local_action:
|
||||
module: command {{ local_certs_path }}/tools/sgtlstool.sh -c {{ local_certs_path }}/config/tlsconfig.yml -ca -crt -t {{ local_certs_path }}/config/ -f -o
|
||||
run_once: true
|
||||
when: root_ca_file.stat.exists == False
|
||||
when: not root_ca_file.stat.exists
|
||||
|
||||
tags:
|
||||
- generate-certs
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
- name: Install OpenDistro
|
||||
package:
|
||||
name: opendistroforelasticsearch-{{ opendistro_version }}
|
||||
name: opendistroforelasticsearch-{{ opendistro_version }}
|
||||
state: present
|
||||
register: install
|
||||
tags: install
|
||||
@ -18,7 +18,7 @@
|
||||
state: absent
|
||||
when: install.changed
|
||||
tags: install
|
||||
|
||||
|
||||
- name: Copy Configuration File
|
||||
blockinfile:
|
||||
block: "{{ lookup('template', 'elasticsearch.yml.j2') }}"
|
||||
|
||||
@ -69,7 +69,6 @@
|
||||
path: "{{ filebeat_module_folder }}"
|
||||
register: filebeat_module_folder
|
||||
|
||||
|
||||
- name: Download Filebeat module package
|
||||
get_url:
|
||||
url: "{{ filebeat_module_package_url }}/{{ filebeat_module_package_name }}"
|
||||
|
||||
@ -127,7 +127,7 @@
|
||||
become: no
|
||||
changed_when: newagent_api.json.error == 0
|
||||
when:
|
||||
- check_keys.stat.exists == false or check_keys.stat.size == 0
|
||||
- not check_keys.stat.exists or check_keys.stat.size == 0
|
||||
- wazuh_managers.0.address is not none
|
||||
tags:
|
||||
- config
|
||||
|
||||
Loading…
Reference in New Issue
Block a user