15 lines
512 B
YAML
15 lines
512 B
YAML
# vim: ft=yaml.ansible
|
|
# code: language=ansible
|
|
---
|
|
- 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:
|
|
registry: "{{ 'docker.data.coop' if vagrant else services.docker_registry.domain }}"
|
|
username: docker
|
|
password: "{{ docker_password }}"
|