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
|
@ -24,7 +24,7 @@
|
|||
file: state=directory path=/etc/systemd/system/memcached.service.d mode=0755 owner=root group=root
|
||||
tags:
|
||||
- memcached
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
|
||||
|
||||
- name: make systemd override config
|
||||
copy: src=memcached-systemdoverride.conf dest=/etc/systemd/system/memcached.service.d/
|
||||
|
@ -32,4 +32,4 @@
|
|||
- memcached
|
||||
notify:
|
||||
- reload systemd
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue