Add ensure-* roles to container image jobs
This is in the zuul-jobs pre-playbook, but we don't actually inherit from those jobs so we need to duplicate it. Change-Id: I875df74936736b80dbb2f29bbb474b993f4616ea
This commit is contained in:
parent
4119042c7e
commit
326c244f8c
@ -1,3 +1,13 @@
|
|||||||
- hosts: localhost
|
- hosts: all
|
||||||
roles:
|
tasks:
|
||||||
- pull-from-intermediate-registry
|
- name: Ensure docker is installed
|
||||||
|
when: "container_command == 'docker'"
|
||||||
|
include_role:
|
||||||
|
name: ensure-docker
|
||||||
|
- name: Ensure podman is installed
|
||||||
|
when: "container_command != 'docker'"
|
||||||
|
include_role:
|
||||||
|
name: ensure-podman
|
||||||
|
- name: Pull from intermediate registry
|
||||||
|
include_role:
|
||||||
|
name: pull-from-intermediate-registry
|
||||||
|
Loading…
Reference in New Issue
Block a user