aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/cinder/tasks/config.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/ansible/roles/cinder/tasks/config.yml b/ansible/roles/cinder/tasks/config.yml
index ecdd67c40..9daa82c44 100644
--- a/ansible/roles/cinder/tasks/config.yml
+++ b/ansible/roles/cinder/tasks/config.yml
@@ -55,8 +55,9 @@
src: "{{ item }}"
dest: "{{ node_config_directory }}/cinder-volume/nfs_shares"
with_first_found:
- - "{{ node_custom_config }}/nfs_shares.j2"
- - "{{ node_custom_config }}/cinder/nfs_shares.j2"
- - "{{ node_custom_config }}/cinder/cinder-volume/nfs_shares.j2"
- - "{{ node_custom_config }}/cinder/{{ inventory_hostname }}/nfs_shares.j2"
- when: enable_cinder_backend_nfs | bool
+ - files:
+ - "{{ node_custom_config }}/nfs_shares.j2"
+ - "{{ node_custom_config }}/cinder/nfs_shares.j2"
+ - "{{ node_custom_config }}/cinder/cinder-volume/nfs_shares.j2"
+ - "{{ node_custom_config }}/cinder/{{ inventory_hostname }}/nfs_shares.j2"
+ skip: "{{ not enable_cinder_backend_nfs | bool }}"