blob: 5283d878c6660fe4384de5bb394b7d468cc28600 [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.
---
# 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