base-jobs/playbooks/buildset-registry/pre.yaml
Radosław Piliszek ca59b60fbe buildset-registry: Always use Docker
Since run-buildset-registry depends on the container_command,
but buildset-registry supports only Docker, we need to enforce it.

Change-Id: I8966251030dcb3342befa727b2cc6e20b7229b11
2023-05-22 21:44:40 +02:00

38 lines
1.0 KiB
YAML

- hosts: all
vars:
# NOTE(yoctozepto): For now, buildset-registry supports only Docker.
container_command: docker
tasks:
- name: Install docker
include_role:
name: ensure-docker
- name: Open the IPv4 port for the buildset registry
become: true
iptables:
action: insert
chain: openstack-INPUT
destination_port: '5000:5001'
jump: ACCEPT
match: tcp
ctstate: NEW
protocol: tcp
ip_version: ipv4
- name: Open the IPv6 port for the buildset registry
become: true
iptables:
action: insert
chain: openstack-INPUT
destination_port: '5000:5001'
jump: ACCEPT
match: tcp
ctstate: NEW
protocol: tcp
ip_version: ipv6
- name: Run buildset registry (if not already running)
when: buildset_registry is not defined
include_role:
name: run-buildset-registry
- name: Use buildset registry
include_role:
name: use-buildset-registry