GH Actions playbook step added

This commit is contained in:
Gonzalo Acuña 2023-01-24 09:02:31 -03:00
parent 0cd0f4a419
commit 6dd11834ef
No known key found for this signature in database
GPG Key ID: 646BA79A313A2270
2 changed files with 40 additions and 0 deletions

38
.github/playbooks/single-wazuh.yml vendored Normal file
View File

@ -0,0 +1,38 @@
---
- name: ConvergeCerts
hosts: localhost
roles:
- role: ../../roles/wazuh/wazuh-indexer
perform_installation: false
vars:
instances:
node1:
name: node-1 # Important: must be equal to indexer_node_name.
ip: 127.0.0.1
role: indexer
tags:
- generate-certs
- name: ConvergeInstall
hosts: localhost
roles:
# 1. Check packages
- role: ../../roles/wazuh/check-packages
become: no
delegate_to: localhost
run_once: true
# 2. Managers
- role: ../../roles/wazuh/ansible-wazuh-manager
vars:
- role: ../../roles/wazuh/ansible-filebeat-oss
vars:
- filebeat_output_indexer_hosts:
- "indexer_centos7:9200"
pre_tasks:
- name: (converge) fix missing packages in cloud images
apt:
name:
- unzip
- gpg-agent
state: present
update_cache: yes
when: ansible_distribution == "Ubuntu"

View File

@ -47,6 +47,8 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Ansible Playbook run Wazuh Single node instance
run: ansible-playbook ./.github/playbooks/single-wazuh.yml
stop-runner:
name: Stop self-hosted EC2 runner
needs: