Merge pull request #299 from wazuh/fix-skipped-occurrences

Fix skipped occurrences in Wazuh Redhat repo tasks
This commit is contained in:
Manuel J. Bernal 2019-11-05 16:53:19 +01:00 committed by GitHub
commit 537b157db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 6 deletions

View File

@ -3,10 +3,14 @@ All notable changes to this project will be documented in this file.
## [v3.xx.x_x.x.x] ## [v3.xx.x_x.x.x]
## Changed ### Changed
- Make Wazuh repositories installation flexible [@jm404](https://github.com/jm404) [#288](https://github.com/wazuh/wazuh-ansible/pull/288) - Make Wazuh repositories installation flexible [@jm404](https://github.com/jm404) [#288](https://github.com/wazuh/wazuh-ansible/pull/288)
### Fixed
- Fix Wazuh repository and installation conditionals [@jm404](https://github.com/jm404) [#299](https://github.com/wazuh/wazuh-ansible/pull/299)
## [v3.10.2_7.3.2] ## [v3.10.2_7.3.2]
### Added ### Added

View File

@ -10,7 +10,7 @@
async: 90 async: 90
poll: 30 poll: 30
when: when:
- ansible_distribution in ['CentOS','RedHat'] - ansible_os_family|lower == "redhat"
tags: tags:
- init - init
@ -20,7 +20,7 @@
state: present state: present
cache_valid_time: 3600 cache_valid_time: 3600
when: when:
- not (ansible_distribution in ['CentOS','RedHat']) - ansible_os_family|lower != "redhat"
tags: tags:
- init - init

View File

@ -8,7 +8,7 @@
gpgcheck: true gpgcheck: true
changed_when: false changed_when: false
when: when:
- (ansible_facts['os_family']|lower == 'redhat') - (ansible_facts['os_family']|lower == 'redhat') and (ansible_distribution|lower != 'amazon')
- (ansible_distribution_major_version|int <= 5) - (ansible_distribution_major_version|int <= 5)
register: repo_v5_installed register: repo_v5_installed
@ -21,7 +21,7 @@
gpgcheck: true gpgcheck: true
changed_when: false changed_when: false
when: when:
- repo_v5_installed.skipped - repo_v5_installed is skipped
- name: RedHat/CentOS/Fedora | download Oracle Java RPM - name: RedHat/CentOS/Fedora | download Oracle Java RPM
get_url: get_url:

View File

@ -52,7 +52,7 @@
gpgcheck: true gpgcheck: true
changed_when: false changed_when: false
when: when:
- repo_v5_manager_installed|skipped - repo_v5_manager_installed is skipped
- name: RedHat/CentOS/Fedora | Install openscap - name: RedHat/CentOS/Fedora | Install openscap
package: name={{ item }} state=present package: name={{ item }} state=present