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: I768ba7415408c1c5dbd66e9fe57788d41587742c
This commit is contained in:
parent
5ee8b16437
commit
a6b6f3dfb4
@ -126,16 +126,14 @@
|
||||
config_type: "json"
|
||||
notify: Restart ironic services
|
||||
|
||||
- name: Copy ironic rootwrap filter config
|
||||
- name: Copy rootwrap filters
|
||||
copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/ironic/rootwrap.d/"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
with_items:
|
||||
- { src: "rootwrap.d/ironic-images.filters", dest: "/etc/ironic/rootwrap.d/ironic-images.filters" }
|
||||
- { src: "rootwrap.d/ironic-lib.filters", dest: "/etc/ironic/rootwrap.d/ironic-lib.filters" }
|
||||
- { src: "rootwrap.d/ironic-utils.filters", dest: "/etc/ironic/rootwrap.d/ironic-utils.filters" }
|
||||
with_fileglob:
|
||||
- rootwrap.d/*
|
||||
notify: Restart ironic services
|
||||
|
||||
- name: Include sudoers file
|
||||
|
Loading…
Reference in New Issue
Block a user