Fix agent installation from sources. Update conditionals and includes
This commit is contained in:
parent
cbad3e06a2
commit
f60f218c88
@ -1,14 +1,14 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: "../tasks/installation_from_sources.yml"
|
|
||||||
when:
|
|
||||||
- wazuh_manager_sources_installation.enabled
|
|
||||||
|
|
||||||
- include_tasks: "RedHat.yml"
|
- include_tasks: "RedHat.yml"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- include_tasks: "Debian.yml"
|
- include_tasks: "Debian.yml"
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
|
- include_tasks: "installation_from_sources.yml"
|
||||||
|
when:
|
||||||
|
- wazuh_agent_sources_installation.enabled
|
||||||
|
|
||||||
- name: Linux CentOS/RedHat | Install wazuh-agent
|
- name: Linux CentOS/RedHat | Install wazuh-agent
|
||||||
package:
|
package:
|
||||||
name: wazuh-agent-{{ wazuh_agent_version }}
|
name: wazuh-agent-{{ wazuh_agent_version }}
|
||||||
@ -17,7 +17,7 @@
|
|||||||
poll: 30
|
poll: 30
|
||||||
when:
|
when:
|
||||||
- ansible_os_family|lower == "redhat"
|
- ansible_os_family|lower == "redhat"
|
||||||
- not wazuh_manager_sources_installation.enabled
|
- not wazuh_agent_sources_installation.enabled
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
|
|
||||||
@ -28,7 +28,7 @@
|
|||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
when:
|
when:
|
||||||
- ansible_os_family|lower != "redhat"
|
- ansible_os_family|lower != "redhat"
|
||||||
- not wazuh_manager_sources_installation.enabled
|
- not wazuh_agent_sources_installation.enabled
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
|
|
||||||
@ -200,9 +200,9 @@
|
|||||||
- include_tasks: "RMRedHat.yml"
|
- include_tasks: "RMRedHat.yml"
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == "RedHat"
|
- ansible_os_family == "RedHat"
|
||||||
- not wazuh_manager_sources_installation.enabled
|
- not wazuh_agent_sources_installation.enabled
|
||||||
|
|
||||||
- include_tasks: "RMDebian.yml"
|
- include_tasks: "RMDebian.yml"
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == "Debian"
|
- ansible_os_family == "Debian"
|
||||||
- not wazuh_manager_sources_installation.enabled
|
- not wazuh_agent_sources_installation.enabled
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user