Skip to content
Snippets Groups Projects
Commit 50816996 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

A redhat bug means we can not 'enable' nfs role as it stands

see  https://bugzilla.redhat.com/show_bug.cgi?id=1178720
I have split enable and start commands for redhat
parent 9dba7220
No related branches found
No related tags found
1 merge request!43Simon nfs fix
......@@ -3,6 +3,7 @@
file: dest={{ item.src }} state=directory mode=755 owner=root group=root
sudo: true
with_items: "{{ exportList }}"
ignore_errors: true
- name: "Starting rpcbind"
service: "name=rpcbind state=started enabled=true"
......@@ -10,10 +11,19 @@
when: ansible_os_family == "RedHat"
- name: "Start the Server"
service: "name=nfs state=started enabled=true"
service: "name=nfs state=started"
sudo: true
when: ansible_os_family == "RedHat"
- name: "Enable the Server at boot"
service: "name=nfs enabled=true"
sudo: true
when: ansible_os_family == "RedHat" and ansible_os_distribution_major == "7"
- name: "Enable the Server at boot"
service: "name=nfs-server.service enabled=true"
sudo: true
when: ansible_os_family == "RedHat" and ansible_os_distribution_major < "7"
- name: "Start the Server"
service: "name=nfs-kernel-server state=started enabled=true"
sudo: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment