wazuh-ansible-4.8.1/roles/wazuh/wazuh-dashboard/tasks/Debian.yml
David Correa Rodríguez 02b72932eb
Fixed apt_key deprecation
2024-05-21 17:38:02 +02: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