Merge pull request #1623 from wazuh/enhancement/1622-add-gpp-package

Add gnupg dependency to indexer, filebeat-oss, and dashboard roles
This commit is contained in:
Gonzalo Acuña 2025-04-25 14:52:46 -03:00 committed by GitHub
commit aeafdd080b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 13 deletions

View File

@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
### Fixed ### Fixed
- Update the Filebeat installation for arm64 to include revision ([#1616](https://github.com/wazuh/wazuh-ansible/pull/1616)) - Update the Filebeat installation for arm64 to include revision ([#1616](https://github.com/wazuh/wazuh-ansible/pull/1616))
- Add gnupg dependency to indexer, filebeat-oss, and dashboard roles ([#1623](https://github.com/wazuh/wazuh-ansible/pull/1623))
### Deleted ### Deleted

View File

@ -1,10 +1,11 @@
--- ---
- name: Debian/Ubuntu | Install apt-transport-https, ca-certificates and acl - name: Debian/Ubuntu | Install apt-transport-https, ca-certificate, acl and gnupg
apt: apt:
name: name:
- apt-transport-https - apt-transport-https
- ca-certificates - ca-certificates
- acl - acl
- gnupg
state: present state: present
register: filebeat_ca_packages_install register: filebeat_ca_packages_install
until: filebeat_ca_packages_install is succeeded until: filebeat_ca_packages_install is succeeded

View File

@ -7,6 +7,12 @@
url: "{{ wazuh_repo.gpg }}" url: "{{ wazuh_repo.gpg }}"
dest: "{{ wazuh_repo.path }}" dest: "{{ wazuh_repo.path }}"
- name: Debian/Ubuntu | Install gnupg
apt:
name:
- gnupg
state: present
- name: Import Wazuh repository GPG key - name: Import Wazuh repository GPG key
command: "gpg --no-default-keyring --keyring gnupg-ring:{{ wazuh_repo.keyring_path }} --import {{ wazuh_repo.path }}" command: "gpg --no-default-keyring --keyring gnupg-ring:{{ wazuh_repo.keyring_path }} --import {{ wazuh_repo.path }}"
args: args:

View File

@ -5,15 +5,15 @@
apt: apt:
update_cache: yes update_cache: yes
- name: Debian 9 (Stretch)
when: (ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "9")
block:
- name: Install Wazuh indexer dependencies - name: Install Wazuh indexer dependencies
apt: apt:
name: [ name:
'unzip', 'wget', 'curl', 'apt-transport-https', software-properties-common - unzip
] - wget
- curl
- apt-transport-https
- software-properties-common
- gnupg
state: present state: present
- name: Add Wazuh indexer repository - name: Add Wazuh indexer repository