Skip to content

Commit

Permalink
Changed check_packages order
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcr01 committed Aug 9, 2023
1 parent 9ed4865 commit bb8a0f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
17 changes: 9 additions & 8 deletions .github/playbooks/aio-wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
become: true
become_user: root
roles:
# 1. Check packages
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
# 2. Generate certificates
- role: ../../roles/wazuh/wazuh-indexer
vars:
generate_certs: true
Expand Down Expand Up @@ -30,24 +36,19 @@
become: true
become_user: root
roles:
# 1. Check packages
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
# 2. Wazuh indexer
# 1. Wazuh indexer
- role: ../../roles/wazuh/wazuh-indexer
vars:
indexer_node_name: "wazuh-es01"
single_node: true
# 3. Managers
# 2. Managers
- role: ../../roles/wazuh/ansible-wazuh-manager
- role: ../../roles/wazuh/ansible-filebeat-oss
vars:
filebeat_node_name: "wazuh-mgr01"
filebeat_output_indexer_hosts:
- "localhost:9200"
# 4. Wazuh dashboard
# 3. Wazuh dashboard
- role: ../../roles/wazuh/wazuh-dashboard
vars:
dashboard_node_name: "wazuh-dash01"
Expand Down
11 changes: 5 additions & 6 deletions .github/playbooks/single-wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- name: ConvergeCerts
hosts: localhost
roles:
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
- role: ../../roles/wazuh/wazuh-indexer
perform_installation: false
vars:
Expand All @@ -15,12 +19,7 @@
- name: ConvergeInstall
hosts: localhost
roles:
# 1. Check packages
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
# 2. Managers
# Managers
- role: ../../roles/wazuh/ansible-wazuh-manager
vars:
- role: ../../roles/wazuh/ansible-filebeat-oss
Expand Down

0 comments on commit bb8a0f3

Please sign in to comment.