Only purge docker when using podman

If you define both the docker and podman services, during the upgrade
the podman service nukes docker even if we have container_cli set to
docker. This change skips docker purge if we're configured to use
docker.

Change-Id: Ib6db467f292d61299ecd9b0dff6c334028b80181
Related-Bug: #1901209
This commit is contained in:
Alex Schultz 2020-10-24 13:00:51 -06:00
parent 54e2245485
commit 8023c6dc20
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@ outputs:
block: *install_and_configure_podman block: *install_and_configure_podman
post_upgrade_tasks: post_upgrade_tasks:
- name: Purge everything about Docker on the host - name: Purge everything about Docker on the host
when: step|int == 3 when:
- step|int == 3
- container_cli == 'podman'
block: block:
- name: Check if docker has some data - name: Check if docker has some data
stat: stat: