kolla-ansible/ansible/roles/cinder
Mauricio Lima 7bb88390d8 Fix copying nfs_shares configuration
Using the `when` conditional on a `with_` loop gets evaluated on each
loop iteration and will not skip a task entirely. Use the `skip`
attribute to ignore errors in this scenario but only `skip` when
`enable_cinder_backend_nfs` is not enabled. If it is enabled the
`nfs_shares` file should be required and this task should fail if it
does not exist.

Co-authored-by: Andrew Widdersheim <amwiddersheim@gmail.com>
Change-Id: I6b997dd943efe7b16beb63899c1488fa5353d996
Closes-Bug: #1641183
2016-11-11 14:33:26 -05:00
..
defaults Allow cinder-volume to be configured to use NFS 2016-11-07 12:57:54 -05:00
meta Remove unused project_yaml parameter from role metadata files 2016-08-07 22:18:17 +02:00
tasks Fix copying nfs_shares configuration 2016-11-11 14:33:26 -05:00
templates Allow cinder-volume to be configured to use NFS 2016-11-07 12:57:54 -05:00