Merge pull request #670 from Tinyblargon/master

Add missing dependancy (package) (user group)
This commit is contained in:
Alberto Rodríguez 2021-11-25 15:03:47 +01:00 committed by GitHub
commit a38c64a7cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

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-certificates, gnupg and acl
apt: apt:
name: name:
- apt-transport-https - apt-transport-https
- ca-certificates - ca-certificates
- acl - acl
- gnupg
state: present state: present
register: wazuh_agent_ca_package_install register: wazuh_agent_ca_package_install
until: wazuh_agent_ca_package_install is succeeded until: wazuh_agent_ca_package_install is succeeded

View File

@ -218,6 +218,11 @@
msg: Agent registration will be performed through enrollment option in templated ossec.conf msg: Agent registration will be performed through enrollment option in templated ossec.conf
when: wazuh_agent_config.enrollment.enabled == 'yes' 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) - name: Linux | Installing agent configuration (ossec.conf)
template: template:
src: var-ossec-etc-ossec-agent.conf.j2 src: var-ossec-etc-ossec-agent.conf.j2