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:
parent
326c244f8c
commit
30b02a86dc
@ -1,11 +1,11 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure docker is installed
|
- name: Ensure docker is installed
|
||||||
when: "container_command == 'docker'"
|
when: "container_command | default('podman') == 'docker'"
|
||||||
include_role:
|
include_role:
|
||||||
name: ensure-docker
|
name: ensure-docker
|
||||||
- name: Ensure podman is installed
|
- name: Ensure podman is installed
|
||||||
when: "container_command != 'docker'"
|
when: "container_command | default('podman') != 'docker'"
|
||||||
include_role:
|
include_role:
|
||||||
name: ensure-podman
|
name: ensure-podman
|
||||||
- name: Pull from intermediate registry
|
- name: Pull from intermediate registry
|
||||||
|
Loading…
Reference in New Issue
Block a user