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:
parent
54b41e3bdf
commit
c14523148a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user