Fix wrong conditionals in repo installation tasks
This commit is contained in:
parent
30b04ac5a8
commit
3bedf74055
@ -9,7 +9,7 @@
|
||||
changed_when: false
|
||||
when:
|
||||
- (ansible_facts['os_family']|lower == 'redhat')
|
||||
- (ansible_os_family = ansible_distribution_major_version|int <= 5)
|
||||
- (ansible_distribution_major_version|int <= 5)
|
||||
register: repo_v5_installed
|
||||
|
||||
- name: RedHat/CentOS/Fedora | Install Wazuh repo
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
changed_when: false
|
||||
when:
|
||||
- (ansible_facts['os_family']|lower == 'redhat')
|
||||
- (ansible_os_family = ansible_distribution_major_version|int <= 5)
|
||||
- (ansible_distribution_major_version|int <= 5)
|
||||
register: repo_v5_manager_installed
|
||||
|
||||
- name: RedHat/CentOS/Fedora | Install Wazuh repo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user