mirror of https://github.com/ceph/ceph-ansible.git
nfs: stop nfs server service in all context
This commit moves this task in order to stop the nfs server service
regardless the deployment type desired (containerized or non
containerized).
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1508506
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 6c6a512a72
)
pull/4563/head
parent
9a62d006bd
commit
1d4d49695e
|
@ -4,6 +4,14 @@
|
||||||
container_exec_cmd: "{{ container_binary }} exec ceph-nfs-{{ ceph_nfs_service_suffix | default(ansible_hostname) }}"
|
container_exec_cmd: "{{ container_binary }} exec ceph-nfs-{{ ceph_nfs_service_suffix | default(ansible_hostname) }}"
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
|
# global/common requirement
|
||||||
|
- name: stop nfs server service
|
||||||
|
systemd:
|
||||||
|
name: "{{ 'nfs-server' if ansible_os_family == 'RedHat' else 'nfsserver' if ansible_os_family == 'Suse' else 'nfs-kernel-server' if ansible_os_family == 'Debian' }}"
|
||||||
|
state: stopped
|
||||||
|
enabled: no
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
- name: include pre_requisite_non_container.yml
|
- name: include pre_requisite_non_container.yml
|
||||||
include_tasks: pre_requisite_non_container.yml
|
include_tasks: pre_requisite_non_container.yml
|
||||||
when: not containerized_deployment | bool
|
when: not containerized_deployment | bool
|
||||||
|
|
|
@ -92,10 +92,3 @@
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: stop nfs server service
|
|
||||||
systemd:
|
|
||||||
name: "{{ 'nfs-server' if ansible_os_family == 'RedHat' else 'nfsserver' if ansible_os_family == 'Suse' else 'nfs-kernel-server' if ansible_os_family == 'Debian' }}"
|
|
||||||
state: stopped
|
|
||||||
enabled: no
|
|
||||||
failed_when: false
|
|
||||||
|
|
Loading…
Reference in New Issue