Create tasks to download and install Agent from .rpm and .deb packages

This commit is contained in:
Jose M 2020-02-19 18:09:48 +01:00
parent aa33bd3531
commit 281d54557a
No known key found for this signature in database
GPG Key ID: 790179D6924E10FF

View File

@ -0,0 +1,16 @@
---
- name: Install Wazuh Agent from .deb packages
apt:
deb: "{{ wazuh_custom_packages_installation_agent_deb_url }}"
state: present
when:
- ansible_os_family|lower == "debian"
- wazuh_custom_packages_installation_agent_enabled
- name: Install Wazuh Agent from .rpm packages
yum:
name: "{{ wazuh_custom_packages_installation_agent_rpm_url }}"
state: present
when:
- ansible_os_family|lower == "redhat"
- wazuh_custom_packages_installation_agent_enabled