Fix this for the various Fedora and rhel versions.
This commit is contained in:
parent
de3a7290da
commit
964d5c2c93
1 changed files with 15 additions and 3 deletions
|
@ -25,13 +25,25 @@
|
|||
- nfs-utils
|
||||
- rpcbind
|
||||
|
||||
- name: enable nfs-related services and run them (fedora)
|
||||
- name: enable nfs-related services and run them (fedora21)
|
||||
service: name={{ item }} enabled=true state=started
|
||||
with_items:
|
||||
- rpc-statd
|
||||
when: ansible_distribution == 'Fedora' or ansible_distribution_major_version == '7'
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version == '21'
|
||||
|
||||
- name: enable nfs-related services and run them (rhel)
|
||||
- name: enable nfs-related services and run them (fedora20)
|
||||
service: name={{ item }} enabled=true state=started
|
||||
with_items:
|
||||
- nfs-lock
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version == '20'
|
||||
|
||||
- name: enable nfs-related services and run them (rhel7)
|
||||
service: name={{ item }} enabled=true state=started
|
||||
with_items:
|
||||
- rpc-statd
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
|
||||
|
||||
- name: enable nfs-related services and run them (rhel6)
|
||||
action: service name={{ item }} enabled=true state=started
|
||||
with_items:
|
||||
- rpcidmapd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue