Make sure container_build_id is removed before writing new one

If the container_build_id file exists, copying in a new one may fail
because of permission issues on os.rename().

Change-Id: I70cbf111e0fdce47386cac3b50688cbf86558dd5
This commit is contained in:
Brent Eagles 2021-12-16 20:58:56 -03:30
parent d811e0df7c
commit 1c264319f5

View File

@ -74,6 +74,14 @@
tags:
- undercloud-install
- name: Remove old container_build_id file
become: true
file:
state: absent
dest: /tmp/container_build_id
tags:
- undercloud-install
- name: Save container_build_id on disk
copy:
content: "{{ container_build_id }}"