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