Change all instances of ansible_distribution_major_version to filter to int for comparisons.

This commit is contained in:
Kevin Fenzi 2015-05-27 22:27:39 +00:00
parent 03633c8f0c
commit 275f4b5203
50 changed files with 74 additions and 74 deletions

View file

@ -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