Fix container-image pre playbook container_command default

This variable may be undefined, so use the default documented by
the roles.

Change-Id: I842a596402f30f1c9a1c2369a6dde23c346fd5f5
This commit is contained in:
James E. Blair 2023-03-23 12:56:45 -07:00
parent 54b41e3bdf
commit c14523148a

View File

@ -1,10 +1,10 @@
- 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