Browse Source

Merge "tripleo_podman_purge: try to use -f when pruning images" into stable/ussuri

changes/41/744041/1
Zuul 4 days ago
committed by Gerrit Code Review
parent
commit
c387938bd4
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      tripleo_ansible/roles/tripleo_podman/tasks/tripleo_podman_purge.yml

+ 9
- 3
tripleo_ansible/roles/tripleo_podman/tasks/tripleo_podman_purge.yml View File

@@ -15,11 +15,17 @@
# under the License.


- name: Podman prune
- name: Podman image prune
become: true
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
command: podman image prune -a

- name: Clean podman volumes
command: podman volume prune -f
- name: Clean podman volumes
become: true
command: podman volume prune -f

Loading…
Cancel
Save