Elevate privileges when deleting stack dir

Octavia creates a bunch of files/folders with elevated
privileges in external_post_deploy step. Though we should
ensure the ownership permissions appropriately, it does
not hurt to force delete those with elevated privileges.

Change-Id: I7e8d0a2a1e4a00fcd6cb736919fe0da8f432023c
(cherry picked from commit b219db1fae)
This commit is contained in:
rabi 2022-04-26 13:55:55 +05:30 committed by Rabi Mishra
parent 1fbbf40615
commit e43407eaeb
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@
path: "{{ config_download_path }}/{{ stack_name }}"
state: absent
- name: Remove the deploy stack
become: true
file:
path: "{{ overcloud_deploy_path }}/{{ stack_name }}"
state: absent