blob: d44750a990075877744d99446a2b6eabd0430019 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements; and to You under the Apache License, Version 2.0.
# This playbook deploys a docker registry using a self-signed cert.
# Generate cert if needed. Not used currently.
- hosts: ansible
- import_tasks: roles/registry/tasks/gencert.yml
when: mode == "deploy" and registry.gencert == true
# Deploy registry
- hosts: registry
- registry
# publish cert on all hosts
- hosts: all:!ansible
become: true
- import_tasks: roles/registry/tasks/publish.yml
when: mode == "deploy" and registry.gencert