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: