Files
kayobe/ansible/roles/docker-registry
Pierre Riteau 816d6ffde2 Configure ansible-lint and fix issues found
Copy ansible-lint configuration from kolla-ansible as a starting point.
Also replace alint tox job by ansible-lint.

Fix various issues found by ansible-lint to make it pass with the
current set of rules.

Change-Id: I1d6173caadbcf249330512e170af8095464f1237
2025-05-27 22:08:39 +02:00
..
2025-01-27 16:42:33 +00:00
2025-01-27 16:42:33 +00:00

Docker Registry

This role can be used to configure a Docker registry running in a Docker container.

Requirements

The host executing the role has the following requirements:

  • Docker engine
  • Python docker >= 2.0.0

Role Variables

docker_registry_enabled: Whether the Docker registry is enabled. Defaults to true. docker_registry_namespace: Docker image namespace. Defaults to library. docker_registry_image: Docker image name. docker_registry_tag: Docker image tag. Defaults to latest. docker_registry_image_full: Full docker image specification. docker_registry_restart_policy: Docker restart policy for docker_registry container. Defaults to unless-stopped. docker_registry_restart_retries: Number of Docker restarts. Defaults to 10. docker_registry_datadir_volume: The name or path to use for the docker volume that backs the registry. Defaults to docker_registry.

Dependencies

None

Example Playbook

The following playbook configures a Docker registry.

---
- hosts: docker-registry
  roles:
    - role: stackhpc.docker-registry

Author Information