diff --git a/roles/nfs-server/tasks/startServer.yml b/roles/nfs-server/tasks/startServer.yml index e8338d56c7265b4fb04a9f5626198d1f3bfe6846..606b143bda4081e031d4944f63125f0d8036fae2 100644 --- a/roles/nfs-server/tasks/startServer.yml +++ b/roles/nfs-server/tasks/startServer.yml @@ -2,6 +2,14 @@ - name: "Starting rpcbind" service: "name=rpcbind state=restarted" sudo: true + when: ansible_os_family == "RedHat" + - name: "Start the Server" service: "name=nfs state=restarted" sudo: true + when: ansible_os_family == "RedHat" + +- name: "Start the Server" + service: "name=nfs-kernel-server state=restarted" + sudo: true + when: ansible_os_family == "Debian"