Change all instances of ansible_distribution_major_version to filter to int for comparisons.
This commit is contained in:
parent
03633c8f0c
commit
275f4b5203
50 changed files with 74 additions and 74 deletions
|
@ -7,7 +7,7 @@
|
|||
- ntp
|
||||
- libsemanage-python
|
||||
- libselinux-python
|
||||
when: ansible_distribution_major_version < '22'
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
@ -56,14 +56,14 @@
|
|||
- name: update all
|
||||
command: yum -y update creates=/etc/sysconfig/global-update-applied
|
||||
register: updated
|
||||
when: ansible_distribution_major_version < '22'
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: update all
|
||||
command: dnf -y update creates=/etc/sysconfig/global-update-applied
|
||||
register: updated
|
||||
when: ansible_distribution_major_version > '21' and ansible_cmdline.ostree is not defined
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue