Merge old Fedora 20 condition with EL 7 one
This commit is contained in:
parent
69914396b4
commit
5a40513875
1 changed files with 3 additions and 12 deletions
|
@ -43,21 +43,12 @@
|
||||||
tags:
|
tags:
|
||||||
- nfs/client
|
- nfs/client
|
||||||
|
|
||||||
- name: enable nfs-related services and run them (fedora20 only)
|
- name: enable nfs-related services and run them (rhel 7 and Fedora)
|
||||||
service: name={{ item }} enabled=true state=started
|
service: name={{ item }} enabled=true state=started
|
||||||
with_items:
|
with_items:
|
||||||
- rpcbind
|
- rpcbind
|
||||||
- nfs-lock
|
- nfs-lock
|
||||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int == 20
|
when: ansible_distribution_major_version|int != 6
|
||||||
tags:
|
|
||||||
- nfs/client
|
|
||||||
|
|
||||||
- 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|int == 7
|
|
||||||
tags:
|
tags:
|
||||||
- nfs/client
|
- nfs/client
|
||||||
|
|
||||||
|
@ -68,7 +59,7 @@
|
||||||
- rpcbind
|
- rpcbind
|
||||||
- nfs
|
- nfs
|
||||||
- nfslock
|
- nfslock
|
||||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 6
|
when: ansible_distribution_major_version|int == 6
|
||||||
tags:
|
tags:
|
||||||
- nfs/client
|
- nfs/client
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue