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:
James E. Blair 2023-03-23 11:51:10 -07:00
parent 4119042c7e
commit 326c244f8c
1 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,13 @@
- hosts: localhost
roles:
- pull-from-intermediate-registry
- hosts: all
tasks:
- 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