4617d0835a
The container roles assume a full image url path and do not work with shorted names like the docker roles do. The buildx path used the shorted path when it should use the full path. Fix this. Change-Id: Icdeee0ebb1c0d280968f425f8560cc5208ebd18d
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
- hosts: all
|
|
tasks:
|
|
- name: Set docker_registry cacheable facts
|
|
set_fact:
|
|
cacheable: true
|
|
docker_registry: "localhost"
|
|
docker_credentials:
|
|
username: zuul
|
|
password: testpassword
|
|
repository: testrepo
|
|
container_registry_credentials:
|
|
localhost:
|
|
username: zuul
|
|
password: testpassword
|
|
repository: testrepo
|
|
|
|
- name: Install container system
|
|
include_role:
|
|
name: "ensure-{{ container_command }}"
|
|
|
|
- name: Install skopeo
|
|
include_role:
|
|
name: "ensure-skopeo"
|
|
|
|
- name: Enable insecure registries
|
|
block:
|
|
- name: Create podman configration directory
|
|
become: true
|
|
file:
|
|
state: directory
|
|
path: /etc/containers
|
|
mode: 0755
|
|
|
|
- name: Setup insecure registries
|
|
become: true
|
|
copy:
|
|
dest: /etc/containers/registries.conf
|
|
content: |
|
|
[registries.insecure]
|
|
registries = ['localhost']
|
|
mode: 0644
|
|
when: container_command == 'podman'
|
|
|
|
- name: Set up a publication registry to stand in for Docker Hub
|
|
import_tasks: ../../util-tasks/run-docker-registry.yaml
|
|
vars:
|
|
registry:
|
|
host: "127.0.0.1"
|
|
port: 80
|
|
username: zuul
|
|
password: testpassword
|
|
container_command: docker
|