wazuh-ansible-4.9.1/roles/wazuh/wazuh-dashboard/tasks/Debian.yml
Andrés Felipe Marulanda Hernández 65ffbf6321 nueva versión
2024-10-28 10:06:21 -05:00

34 lines
867 B
YAML

---
- block:
- include_vars: debian.yml
- name: Download apt repository signing key
get_url:
url: "{{ wazuh_repo.gpg }}"
dest: "{{ wazuh_repo.path }}"
- name: Import Wazuh repository GPG key
command: "gpg --no-default-keyring --keyring gnupg-ring:{{ wazuh_repo.keyring_path }} --import {{ wazuh_repo.path }}"
args:
creates: "{{ wazuh_repo.keyring_path }}"
- name: Set permissions for Wazuh repository GPG key
file:
path: "{{ wazuh_repo.keyring_path }}"
mode: '0644'
- name: Debian systems | Add Wazuh dashboard repo
apt_repository:
repo: "{{ wazuh_repo.apt }}"
state: present
update_cache: yes
- name: Install Wazuh dashboard
apt:
name: "wazuh-dashboard={{ dashboard_version }}-*"
state: present
update_cache: yes
register: install
tags:
- install