Move "installation_from_sources" include to Linux.yml

This commit is contained in:
Jose M 2019-11-20 19:09:40 +01:00
parent 9d62860ea1
commit e3ecb74ca8
3 changed files with 5 additions and 11 deletions

View File

@ -1,9 +1,4 @@
---
- include_tasks: "../roles/wazuh/ansible-wazuh-agent/tasks/installation_from_sources.yml"
when:
- wazuh_sources_installation.enabled
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt:
name:
@ -25,7 +20,7 @@
when:
- ansible_distribution == "Ubuntu"
- ansible_distribution_major_version | int == 14
- not wazuh_sources_installation.enabled
- not wazuh_sources_installation.enabled
- name: Debian/Ubuntu | Installing Wazuh repository key
apt_key:

View File

@ -1,4 +1,8 @@
---
- include_tasks: "../roles/wazuh/ansible-wazuh-agent/tasks/installation_from_sources.yml"
when:
- wazuh_sources_installation.enabled
- include_tasks: "RedHat.yml"
when: ansible_os_family == "RedHat"

View File

@ -1,9 +1,4 @@
---
- include_tasks: "../roles/wazuh/ansible-wazuh-agent/tasks/installation_from_sources.yml"
when:
- wazuh_sources_installation.enabled
- name: RedHat/CentOS 5 | Install Wazuh repo
yum_repository:
name: wazuh_repo