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
|
@ -97,7 +97,7 @@
|
|||
|
||||
- name: copy over our pstorefs/collectd selinux module (rhel6 has no pstorefs)
|
||||
copy: src=selinux/fi-pstorefs.pp dest=/usr/share/collectd/fi-pstorefs.pp
|
||||
when: ansible_distribution_major_version != '6'
|
||||
when: ansible_distribution_major_version|int != 6
|
||||
register: ficpstorefs_module
|
||||
tags:
|
||||
- collectd
|
||||
|
@ -105,7 +105,7 @@
|
|||
|
||||
- name: check to see if its even installed yet
|
||||
shell: semodule -l | grep fi-pstorefs | wc -l
|
||||
when: ansible_distribution_major_version != '6'
|
||||
when: ansible_distribution_major_version|int != 6
|
||||
register: ficpstorefs_grep
|
||||
always_run: true
|
||||
changed_when: "'0' in ficpstorefs_grep.stdout"
|
||||
|
@ -115,7 +115,7 @@
|
|||
|
||||
- name: install our pstorefs/collectd selinux module
|
||||
command: semodule -i /usr/share/collectd/fi-pstorefs.pp
|
||||
when: ansible_distribution_major_version != '6' and (ficpstorefs_module|changed or ficpstorefs_grep|changed)
|
||||
when: ansible_distribution_major_version|int != 6 and (ficpstorefs_module|changed or ficpstorefs_grep|changed)
|
||||
tags:
|
||||
- collectd
|
||||
- selinux
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue