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
|
@ -30,14 +30,14 @@
|
|||
with_items:
|
||||
- rpcbind
|
||||
- nfs-lock
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version == '20'
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int == 20
|
||||
|
||||
- name: enable nfs-related services and run them (rhel7)
|
||||
service: name={{ item }} enabled=true state=started
|
||||
with_items:
|
||||
- rpcbind
|
||||
- nfs-lock
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
|
||||
|
||||
- name: enable nfs-related services and run them (rhel6)
|
||||
action: service name={{ item }} enabled=true state=started
|
||||
|
@ -46,7 +46,7 @@
|
|||
- rpcbind
|
||||
- nfs
|
||||
- nfslock
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '6'
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 6
|
||||
|
||||
- name: nfs mount points (phx2)
|
||||
mount: >
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue