From e88af3c4cb314f1f640447ebdce343f0aca85fb4 Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Mon, 19 Feb 2018 17:23:32 +0000 Subject: [PATCH] [TEST] Test setting up correct systemd file for nfs-ganesha Don't merge this. Test to see if we copy over the nfs-ganesha-lock.service.debian8 file properly, whether the Xenial CI job will work. The upstream download.ceph.com nfs-ganesha package should be fixed for xenial (which is in progress). --- roles/ceph-nfs/tasks/start_nfs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/ceph-nfs/tasks/start_nfs.yml b/roles/ceph-nfs/tasks/start_nfs.yml index bfd3266e4..c0dc25945 100644 --- a/roles/ceph-nfs/tasks/start_nfs.yml +++ b/roles/ceph-nfs/tasks/start_nfs.yml @@ -68,6 +68,13 @@ notify: - restart ceph nfss +- name: copy over nfs-ganesha-lock.service file + shell: "cp /lib/systemd/system/nfs-ganesha-lock.service.debian8 /lib/systemd/system/nfs-ganesha-lock.service" + when: + - ansible_distribution == 'Ubuntu' + - not containerized_deployment + - ceph_nfs_enable_service + - name: systemd start nfs container systemd: name: ceph-nfs@{{ ceph_nfs_service_suffix | default(ansible_hostname) }}