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:
parent
d811e0df7c
commit
1c264319f5
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user