Merge pull request #299 from wazuh/fix-skipped-occurrences
Fix skipped occurrences in Wazuh Redhat repo tasks
This commit is contained in:
commit
537b157db1
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user