Fix container-image pre playbook container_command default

This variable can be undefined, so use the documented default.

Change-Id: Ied1f79a5ec0ca769301ed2ecd38e67f1f511aa50
This commit is contained in:
James E. Blair 2023-03-23 12:55:33 -07:00
parent 326c244f8c
commit 30b02a86dc

View File

@ -1,11 +1,11 @@
- hosts: all
tasks:
- name: Ensure docker is installed
when: "container_command == 'docker'"
when: "container_command | default('podman') == 'docker'"
include_role:
name: ensure-docker
- name: Ensure podman is installed
when: "container_command != 'docker'"
when: "container_command | default('podman') != 'docker'"
include_role:
name: ensure-podman
- name: Pull from intermediate registry