From 5859da2f2cf8e32407be2e25e2c2b343a3c9c71a Mon Sep 17 00:00:00 2001 From: Pedro Sanchez Date: Tue, 11 Jul 2017 18:41:03 -0700 Subject: [PATCH] Tasks OS fixes --- ansible-wazuh-agent/tasks/Debian.yml | 9 +++------ ansible-wazuh-agent/tasks/RedHat.yml | 6 +++--- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ansible-wazuh-agent/tasks/Debian.yml b/ansible-wazuh-agent/tasks/Debian.yml index 957e5089..2237df96 100644 --- a/ansible-wazuh-agent/tasks/Debian.yml +++ b/ansible-wazuh-agent/tasks/Debian.yml @@ -5,13 +5,10 @@ - apt-transport-https - ca-certificates -- name: Debian/Ubuntu | Installing repository key - apt_key: url=https://packages.wazuh.com/key/GPG-KEY-WAZUH +- name: Debian/Ubuntu | Installing repository keyyyy + shell: curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | apt-key add - -- name: Debian/Ubuntu | Installing Wazuh repository key - apt_key: url=https://packages.wazuh.com/key/GPG-KEY-WAZUH - -- name: Debian/Ubuntu | Add Wazuh repositories. +- name: Debian/Ubuntu | Add Wazuh repositories apt_repository: repo: deb https://packages.wazuh.com/apt {{ ansible_distribution_release }} main state: present diff --git a/ansible-wazuh-agent/tasks/RedHat.yml b/ansible-wazuh-agent/tasks/RedHat.yml index 38048aa3..cd74640f 100644 --- a/ansible-wazuh-agent/tasks/RedHat.yml +++ b/ansible-wazuh-agent/tasks/RedHat.yml @@ -1,5 +1,5 @@ --- -- name: CentOS | Install Wazuh repo +- name: CentOS | Install Wazuh repository yum_repository: name: wazuh_repo description: CentOS-$releasever - Wazuh @@ -8,7 +8,7 @@ gpgcheck: yes when: ansible_distribution == 'CentOS' -- name: Fedora | Install Wazuh repo +- name: Fedora | Install Wazuh repository yum_repository: name: wazuh_repo description: Fedora-$releasever - Wazuh @@ -17,7 +17,7 @@ gpgcheck: yes when: ansible_distribution == 'Fedora' -- name: RedHat | Install Wazuh repo +- name: RedHat | Install Wazuh repository yum_repository: name: wazuh_repo description: CentOS-$releasever - Wazuh