ansible: change when conditions to use == instead of is when checking strings.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-09-19 19:27:25 +00:00 committed by Pierre-Yves Chibon
parent e4222545c1
commit 81fb4582e7
33 changed files with 135 additions and 135 deletions

View file

@ -24,7 +24,7 @@
- name: hotfix - copy over new httpd init script
copy: src="{{ files }}/hotfix/httpd/httpd.init" dest=/etc/init.d/httpd
owner=root group=root mode=0755
when: ansible_distribution_major_version|int < 30 and ansible_distribution is 'Fedora'
when: ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora'
notify:
- reload apache
tags:
@ -36,7 +36,7 @@
- name: hotfix - copy over new httpd init script
copy: src="{{ files }}/hotfix/httpd/httpd.init" dest=/etc/init.d/httpd
owner=root group=root mode=0755
when: ansible_distribution_major_version|int <= 8 and ansible_distribution is 'RedHat'
when: ansible_distribution_major_version|int <= 8 and ansible_distribution == 'RedHat'
notify:
- reload apache
tags:
@ -46,7 +46,7 @@
- name: hotfix - copy over new httpd sysconfig (el6)
copy: src="{{ files }}/hotfix/httpd/httpd.sysconfig" dest=/etc/sysconfig/httpd
when: ansible_distribution_major_version|int == 6 and ansible_distribution is 'RedHat'
when: ansible_distribution_major_version|int == 6 and ansible_distribution == 'RedHat'
notify:
- reload apache
tags:
@ -56,7 +56,7 @@
- name: hotfix - copy over new httpd sysconfig (el7)
copy: src="{{ files }}/hotfix/httpd/httpd.sysconfig" dest=/etc/sysconfig/httpd
when: ansible_distribution_major_version|int == 7 and ansible_distribution is 'RedHat'
when: ansible_distribution_major_version|int == 7 and ansible_distribution == 'RedHat'
notify:
- reload apache
tags: