Merge "tripleo_podman_purge: try to use -f when pruning images" into stable/ussuri
This commit is contained in:
commit
c387938bd4
|
@ -15,11 +15,17 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
- name: Podman prune
|
- name: Podman image prune
|
||||||
become: true
|
become: true
|
||||||
block:
|
block:
|
||||||
|
- name: Clean podman images
|
||||||
|
command: podman image prune -a -f
|
||||||
|
rescue:
|
||||||
|
# In case -f isn't available yet, we fallback to old way.
|
||||||
|
# https://bugs.launchpad.net/tripleo/+bug/1889418
|
||||||
- name: Clean podman images
|
- name: Clean podman images
|
||||||
command: podman image prune -a
|
command: podman image prune -a
|
||||||
|
|
||||||
- name: Clean podman volumes
|
- name: Clean podman volumes
|
||||||
command: podman volume prune -f
|
become: true
|
||||||
|
command: podman volume prune -f
|
||||||
|
|
Loading…
Reference in New Issue