CI tests updated
This commit is contained in:
parent
3144ac1817
commit
3924b08449
@ -15,6 +15,12 @@
|
|||||||
- name: ConvergeInstall
|
- name: ConvergeInstall
|
||||||
hosts: all
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
|
# 1. Check packages
|
||||||
|
- role: ../../roles/wazuh/check-packages
|
||||||
|
become: no
|
||||||
|
delegate_to: localhost
|
||||||
|
when: "inventory_hostname in {{ groups['indexer'] | first }}"
|
||||||
|
# 2. Managers
|
||||||
- role: ../../roles/wazuh/ansible-wazuh-manager
|
- role: ../../roles/wazuh/ansible-wazuh-manager
|
||||||
vars:
|
vars:
|
||||||
- { role: ../../roles/wazuh/ansible-filebeat-oss, filebeat_output_indexer_hosts: "indexer_centos7:9200" }
|
- { role: ../../roles/wazuh/ansible-filebeat-oss, filebeat_output_indexer_hosts: "indexer_centos7:9200" }
|
||||||
|
|||||||
@ -83,24 +83,25 @@
|
|||||||
- role: ../../roles/wazuh/check-packages
|
- role: ../../roles/wazuh/check-packages
|
||||||
become: no
|
become: no
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
# 1. Wazuh indexer
|
when: "inventory_hostname in {{ groups['indexer'] | first }}"
|
||||||
|
# 2. Wazuh indexer
|
||||||
- role: ../../roles/wazuh/wazuh-indexer
|
- role: ../../roles/wazuh/wazuh-indexer
|
||||||
when: inventory_hostname in groups['indexer']
|
when: inventory_hostname in groups['indexer']
|
||||||
# 2. Managers
|
# 3. Managers
|
||||||
- role: ../../roles/wazuh/ansible-wazuh-manager
|
- role: ../../roles/wazuh/ansible-wazuh-manager
|
||||||
when: inventory_hostname in groups['managers']
|
when: inventory_hostname in groups['managers']
|
||||||
- role: ../../roles/wazuh/ansible-filebeat-oss
|
- role: ../../roles/wazuh/ansible-filebeat-oss
|
||||||
when: inventory_hostname in groups['managers']
|
when: inventory_hostname in groups['managers']
|
||||||
# 3. Wazuh dashboard
|
# 4. Wazuh dashboard
|
||||||
- role: ../../roles/wazuh/wazuh-dashboard
|
- role: ../../roles/wazuh/wazuh-dashboard
|
||||||
when: inventory_hostname in groups['dashboard']
|
when: inventory_hostname in groups['dashboard']
|
||||||
# 4. Agents:
|
# 5. Agents:
|
||||||
- role: ../../roles/wazuh/ansible-wazuh-agent
|
- role: ../../roles/wazuh/ansible-wazuh-agent
|
||||||
vars:
|
vars:
|
||||||
wazuh_managers: '{{ wazuh_managers_list }}'
|
wazuh_managers: '{{ wazuh_managers_list }}'
|
||||||
when: inventory_hostname in groups['agents']
|
when: inventory_hostname in groups['agents']
|
||||||
vars:
|
vars:
|
||||||
instances:
|
instances:
|
||||||
node1:
|
node1:
|
||||||
name: wazuh-es01 # Important: must be equal to indexer_node_name.
|
name: wazuh-es01 # Important: must be equal to indexer_node_name.
|
||||||
ip: "{{ hostvars.molecule_wazuh_indexer_centos7.private_ip }}" # When unzipping, the node will search for its node name folder to get the cert.
|
ip: "{{ hostvars.molecule_wazuh_indexer_centos7.private_ip }}" # When unzipping, the node will search for its node name folder to get the cert.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user