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
|
@ -85,11 +85,11 @@
|
|||
action: service name=openvpn@openvpn state=restarted
|
||||
|
||||
- name: restart openvpn (RHEL6)
|
||||
when: ansible_distribution == "RedHat" and ansible_distribution_major_version == "6"
|
||||
when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6
|
||||
action: service name=openvpn state=restarted
|
||||
|
||||
- name: restart openvpn (RHEL7)
|
||||
when: ansible_distribution == "RedHat" and ansible_distribution_major_version == "7"
|
||||
when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 7
|
||||
action: service name=openvpn@openvpn state=restarted
|
||||
|
||||
- name: restart postfix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue