aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/cinder/tasks/config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/cinder/tasks/config.yml')
-rw-r--r--ansible/roles/cinder/tasks/config.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/roles/cinder/tasks/config.yml b/ansible/roles/cinder/tasks/config.yml
index 800401615..ecdd67c40 100644
--- a/ansible/roles/cinder/tasks/config.yml
+++ b/ansible/roles/cinder/tasks/config.yml
@@ -49,3 +49,14 @@
dest: "{{ node_config_directory }}/cinder/policy.json"
when:
cinder_policy.stat.exists
+
+- name: Copying over nfs_shares files for cinder_volume
+ template:
+ 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