Fix agent installation from sources. Update conditionals and includes

This commit is contained in:
Jose M 2019-11-25 15:43:38 +01:00
parent cbad3e06a2
commit f60f218c88

View File

@ -1,14 +1,14 @@
---
- include_tasks: "../tasks/installation_from_sources.yml"
when:
- wazuh_manager_sources_installation.enabled
- include_tasks: "RedHat.yml"
when: ansible_os_family == "RedHat"
- include_tasks: "Debian.yml"
when: ansible_os_family == "Debian"
- include_tasks: "installation_from_sources.yml"
when:
- wazuh_agent_sources_installation.enabled
- name: Linux CentOS/RedHat | Install wazuh-agent
package:
name: wazuh-agent-{{ wazuh_agent_version }}
@ -17,7 +17,7 @@
poll: 30
when:
- ansible_os_family|lower == "redhat"
- not wazuh_manager_sources_installation.enabled
- not wazuh_agent_sources_installation.enabled
tags:
- init
@ -28,7 +28,7 @@
cache_valid_time: 3600
when:
- ansible_os_family|lower != "redhat"
- not wazuh_manager_sources_installation.enabled
- not wazuh_agent_sources_installation.enabled
tags:
- init
@ -200,9 +200,9 @@
- include_tasks: "RMRedHat.yml"
when:
- ansible_os_family == "RedHat"
- not wazuh_manager_sources_installation.enabled
- not wazuh_agent_sources_installation.enabled
- include_tasks: "RMDebian.yml"
when:
- ansible_os_family == "Debian"
- not wazuh_manager_sources_installation.enabled
- not wazuh_agent_sources_installation.enabled