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"
|
config_type: "json"
|
||||||
notify: Restart ironic services
|
notify: Restart ironic services
|
||||||
|
|
||||||
- name: Copy ironic rootwrap filter config
|
- name: Copy rootwrap filters
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "/etc/ironic/rootwrap.d/"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
with_items:
|
with_fileglob:
|
||||||
- { src: "rootwrap.d/ironic-images.filters", dest: "/etc/ironic/rootwrap.d/ironic-images.filters" }
|
- rootwrap.d/*
|
||||||
- { 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" }
|
|
||||||
notify: Restart ironic services
|
notify: Restart ironic services
|
||||||
|
|
||||||
- name: Include sudoers file
|
- name: Include sudoers file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user