zuul-jobs/playbooks/container-image/pre.yaml
James E. Blair c14523148a Fix container-image pre playbook container_command default
This variable may be undefined, so use the default documented by
the roles.

Change-Id: I842a596402f30f1c9a1c2369a6dde23c346fd5f5
2023-03-23 12:56:45 -07:00

11 lines
324 B
YAML

- hosts: all
tasks:
- name: Ensure docker is installed
when: "container_command | default('podman') == 'docker'"
include_role:
name: ensure-docker
- name: Ensure podman is installed
when: "container_command | default('podman') != 'docker'"
include_role:
name: ensure-podman