kayobe/ansible/docker-registry.yml
Pierre Riteau ce49ae7c80 Allow to configure where to deploy a Docker Registry
This commit changes the docker-registry playbook to deploy a Docker
Registry on hosts in the docker-registry group, rather than being
harcoded to deploy on the first controller.

The default location is changed to deploy on the seed as it appears to
be a good location for most deployments.

UpgradeImpact: The Docker Registry is now deployed on the seed by
default.

Change-Id: I87d02bd9556afb795c8783ed78e797fdd31fe8ca
Story: 2004820
Task: 28986
2019-01-29 15:44:21 +00:00

16 lines
382 B
YAML

---
# Deploy/pull/reconfigure/upgrade Docker registry.
#
# Follows kolla-ansible service deployment patterns.
#
# Variables:
# action: One of deploy, destroy, pull, reconfigure, upgrade
- name: Ensure a local Docker registry is deployed
hosts: docker-registry
tags:
- docker-registry
roles:
- role: docker-registry
docker_registry_action: "{{ kayobe_action }}"