From e800c1d7dbd4cc2c438e6a7842e0c0f1e451c278 Mon Sep 17 00:00:00 2001 From: caoyuan Date: Mon, 22 Jan 2018 17:29:59 +0800 Subject: [PATCH] Restart manila-share after changed in the external-ceph Change-Id: I9845b95e01dbd0c03693a2f4717ef11ea34f460c Closes-Bug: #1744673 --- ansible/roles/manila/tasks/external_ceph.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/roles/manila/tasks/external_ceph.yml b/ansible/roles/manila/tasks/external_ceph.yml index fbfe4ae589..48cccd8b4f 100644 --- a/ansible/roles/manila/tasks/external_ceph.yml +++ b/ansible/roles/manila/tasks/external_ceph.yml @@ -3,6 +3,8 @@ file: path: "{{ node_config_directory }}/manila-share" state: "directory" + when: + - inventory_hostname in groups['manila-share'] - name: Copying over ceph.conf for manila merge_configs: @@ -10,6 +12,10 @@ - "{{ node_custom_config }}/manila/ceph.conf" - "{{ node_custom_config }}/manila/manila-share/ceph.conf" dest: "{{ node_config_directory }}/manila-share/ceph.conf" + when: + - inventory_hostname in groups['manila-share'] + notify: + - Restart manila-share container - name: Copy over Ceph keyring files for manila copy: @@ -18,3 +24,7 @@ with_fileglob: - "{{ node_custom_config }}/manila/ceph.client.manila.keyring" - "{{ node_custom_config }}/manila/manila/ceph.client.manila.keyring" + when: + - inventory_hostname in groups['manila-share'] + notify: + - Restart manila-share container