2023-10-03 19:19:51 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2024-03-01 20:30:18 +00:00
|
|
|
# code: language=ansible
|
2023-10-03 19:19:51 +00:00
|
|
|
---
|
|
|
|
- name: Generate htpasswd file
|
|
|
|
shell: docker compose exec registry htpasswd -Bbn docker {{ docker_password }} > auth/htpasswd
|
|
|
|
args:
|
|
|
|
chdir: "{{ services.docker_registry.volume_folder }}"
|
|
|
|
creates: "{{ services.docker_registry.volume_folder }}/auth/htpasswd"
|
|
|
|
|
|
|
|
- name: log in to registry
|
|
|
|
docker_login:
|
2024-03-29 21:55:56 +00:00
|
|
|
registry: docker.data.coop
|
2023-10-03 19:19:51 +00:00
|
|
|
username: docker
|
|
|
|
password: "{{ docker_password }}"
|