Update rootwrap filter copy for easier maintenance

Update the rootwrap filter config file copy task to handle
looking up rootwrap filter files using 'with_fileglob' to avoid
having to maintain the task with each addition or removal of these
files.

Change-Id: I157cbc4b71c3a2f994ef6542a3c31c6279cd6ca9
This commit is contained in:
Jesse Pretorius 2016-09-20 16:06:44 +01:00
parent 640b768e3d
commit 1e2d1c097c

View File

@ -44,12 +44,14 @@
notify:
- Restart cinder services
- name: Drop cinder configs
- name: Copy cinder configs
copy:
src: "rootwrap.d/volume.filters"
dest: "/etc/cinder/rootwrap.d/volume.filters"
src: "{{ item }}"
dest: "/etc/cinder/rootwrap.d/"
owner: "root"
group: "root"
with_fileglob:
- rootwrap.d/*
notify:
- Restart cinder services