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: Iefe82a20b0efce14e7ad3d0794e22882f81d8c8d
This commit is contained in:
Jesse Pretorius 2016-09-20 16:13:48 +01:00
parent db45ff4977
commit d08df5d06d

View File

@ -45,10 +45,12 @@
- name: Drop rootwrap filter(s)
copy:
src: "rootwrap.d/sahara.filters"
dest: "/etc/sahara/rootwrap.d/sahara.filters"
src: "{{ item }}"
dest: "/etc/sahara/rootwrap.d/"
owner: "root"
group: "root"
with_fileglob:
- rootwrap.d/*
notify:
- Restart sahara api
- Restart sahara engine