From 6358c4b8b67ce703250eaf09b0a2f7b2f8069e21 Mon Sep 17 00:00:00 2001 From: tinyblargon Date: Thu, 18 Nov 2021 15:00:46 +0100 Subject: [PATCH 1/2] Add gnupg to list of installed applications --- roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml index 9d218fcb..d9b3e255 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml @@ -1,10 +1,11 @@ --- -- name: Debian/Ubuntu | Install apt-transport-https, ca-certificates and acl +- name: Debian/Ubuntu | Install apt-transport-https, ca-certificates, gnupg and acl apt: name: - apt-transport-https - ca-certificates - acl + - gnupg state: present register: wazuh_agent_ca_package_install until: wazuh_agent_ca_package_install is succeeded From e5c4c4a8b628fa36977d9a71813c17a8ae9341a9 Mon Sep 17 00:00:00 2001 From: tinyblargon Date: Thu, 18 Nov 2021 19:42:01 +0100 Subject: [PATCH 2/2] Ensure group "wazuh" exists --- roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml index 9f4127dd..ad381eac 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml @@ -218,6 +218,11 @@ msg: Agent registration will be performed through enrollment option in templated ossec.conf when: wazuh_agent_config.enrollment.enabled == 'yes' +- name: Linux | Ensure group "wazuh" exists + ansible.builtin.group: + name: wazuh + state: present + - name: Linux | Installing agent configuration (ossec.conf) template: src: var-ossec-etc-ossec-agent.conf.j2