Fix rootwrap files idempotency
Task for ensuring rootwrap permissions adds execution bit to all files in folders. Otherwise, rootwrap.d directory won't have it. So using file module with recurse is not giving expected behaviour in any scenario. We just remove this task, since expected permissions must be set by prior tasks. Change-Id: I6853af8adc53d670ef1935dedebab75c1703a41c
This commit is contained in:
parent
62f3ce0efc
commit
6c47b98a9b
|
@ -126,16 +126,6 @@
|
|||
delegate_to: localhost
|
||||
with_items: "{{ cinder_core_files }}"
|
||||
|
||||
# NOTE(cloudnull): This will ensure strong permissions on all rootwrap files.
|
||||
# NOTE(noonedeadpunk): X keeps execute permissions for rootwrap.d itself.
|
||||
- name: Set rootwrap.d permissions
|
||||
file:
|
||||
path: "/etc/cinder/rootwrap.d"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "u=rwX,g=rX,o="
|
||||
recurse: true
|
||||
|
||||
- name: Ensure cinder tgt include
|
||||
lineinfile:
|
||||
dest: /etc/tgt/targets.conf
|
||||
|
|
Loading…
Reference in New Issue