From 0d25e6f2387c8bb2d2829cbd177a9457dcdd3bf3 Mon Sep 17 00:00:00 2001
From: Paul Bourke <paul.bourke@oracle.com>
Date: Mon, 4 Sep 2017 13:44:11 +0100
Subject: [PATCH] Only copy nfs_shares to cinder-volume groups

Co-Authored-by: Mick Thompson <michael.a.thompson@oracle.com>
Change-Id: I673950cb6cead9b18ee67a0971ed305ef5e3af2d
Closes-Bug: #1713010
---
 ansible/roles/cinder/tasks/config.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ansible/roles/cinder/tasks/config.yml b/ansible/roles/cinder/tasks/config.yml
index 504e3ff990..7c38fd80c6 100644
--- a/ansible/roles/cinder/tasks/config.yml
+++ b/ansible/roles/cinder/tasks/config.yml
@@ -100,6 +100,7 @@
         - "{{ node_custom_config }}/cinder/cinder-volume/nfs_shares"
         - "{{ node_custom_config }}/cinder/{{ inventory_hostname }}/nfs_shares"
       skip: "{{ not enable_cinder_backend_nfs | bool and not enable_cinder_backend_hnas_nfs | bool }}"
+  when: inventory_hostname in groups['cinder-volume']
 
 - name: Check cinder containers
   kolla_docker: