From f811d3148ac542f32b476146ffc791aa4ea72693 Mon Sep 17 00:00:00 2001 From: Margarita Shakhova Date: Sun, 29 Nov 2020 23:53:46 -0500 Subject: [PATCH] Fix /tmp/swift-rings/backups/ files deletion Add permission escalation to the swift ring generation playbook Task: 41256 Story: 2008354 Change-Id: I7fa88a203274c3030b3d8e5208f94b2230d43c68 --- ansible/roles/swift-rings/tasks/main.yml | 1 + releasenotes/notes/story-2008354-0c34e2ad7aeb7d3d.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/story-2008354-0c34e2ad7aeb7d3d.yaml diff --git a/ansible/roles/swift-rings/tasks/main.yml b/ansible/roles/swift-rings/tasks/main.yml index 7c0a64da4..c3972b6d8 100644 --- a/ansible/roles/swift-rings/tasks/main.yml +++ b/ansible/roles/swift-rings/tasks/main.yml @@ -62,6 +62,7 @@ file: path: "{{ swift_ring_build_path }}" state: absent + become: true delegate_to: "{{ swift_ring_build_host }}" vars: diff --git a/releasenotes/notes/story-2008354-0c34e2ad7aeb7d3d.yaml b/releasenotes/notes/story-2008354-0c34e2ad7aeb7d3d.yaml new file mode 100644 index 000000000..a232401eb --- /dev/null +++ b/releasenotes/notes/story-2008354-0c34e2ad7aeb7d3d.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes issue with deleting swift ring temporary files. + See `story 2008354 `__ + for details.