# Licensed to the Apache Software Foundation (ASF) under one or more contributor | |
# license agreements; and to You under the Apache License, Version 2.0. | |
--- | |
# Logs in to private registry if needed. | |
- name: docker login | |
docker_login: | |
registry: "{{ docker_registry }}" | |
username: "{{ docker_registry_username }}" | |
password: "{{ docker_registry_password }}" | |
when: docker_registry != "" and docker_registry_password is defined |