nfs: ensure nfs-server server is stopped

NFS-ganesha cannot start is the nfs-server service
is running. This commit stops nfs-server in case it
is running on a (debian, redhat, suse) node before
the nfs-ganesha service starts up

fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1508506

Signed-off-by: Ali Maredia <amaredia@redhat.com>
pull/2518/head
Ali Maredia 2018-04-02 13:47:31 -04:00 committed by Sébastien Han
parent 4a430ae29a
commit 01c58695fc
1 changed files with 7 additions and 0 deletions

View File

@ -223,3 +223,10 @@
owner: "root"
group: "root"
mode: "0755"
- name: stop nfs server service
systemd:
name: "{%- if ansible_os_family == 'RedHat' 'nfs-server' %}{%- endif %}{%- if ansible_os_family == 'Suse' 'nfsserver' %}{%- endif %}{%- if ansible_os_family == 'Debian' 'nfs-kernel-server' %}{%- endif %}"
state: stopped
enabled: no
ignore_errors: true