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
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
- python-virtinst
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '6'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 6
|
||||
|
||||
- name: install libvirt packages on rhel7 virthosts
|
||||
yum: pkg={{ item }} state=present
|
||||
|
@ -22,7 +22,7 @@
|
|||
- virt-install
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
|
||||
|
||||
# install libvirtd.conf
|
||||
#
|
||||
|
@ -50,4 +50,4 @@
|
|||
- restart bridge
|
||||
tags:
|
||||
- config
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
with_items:
|
||||
- epel6.repo
|
||||
- rhel6.repo
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '6'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 6
|
||||
tags:
|
||||
- config
|
||||
- packages
|
||||
|
@ -15,7 +15,7 @@
|
|||
with_items:
|
||||
- epel7.repo
|
||||
- rhel7.repo
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
|
||||
tags:
|
||||
- config
|
||||
- packages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue