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]
## Changed
### Changed
- 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]
### Added

View File

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

View File

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

View File

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