NFSv3 locking depends on rpcbind and while dependencies in the packages systemd startup files should deal with it they don't so lets make sure its enabled and running
This commit is contained in:
parent
a7f7d1bf8e
commit
60c49f21a2
1 changed files with 4 additions and 2 deletions
|
@ -25,15 +25,17 @@
|
|||
- nfs-utils
|
||||
- rpcbind
|
||||
|
||||
- name: enable nfs-related services and run them (fedora20)
|
||||
- name: enable nfs-related services and run them (fedora20 and newer)
|
||||
service: name={{ item }} enabled=true state=started
|
||||
with_items:
|
||||
- rpcbind
|
||||
- nfs-lock
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version == '20'
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version > '19'
|
||||
|
||||
- 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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue