blob: 65ed60efae093445f5496a137bcfb8b68a787e4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
---
- name: Check for credentials file for registry auth
stat:
path: "{{ docker_cli_auth_config_path }}/config.json"
when: oreg_auth_user is defined
register: docker_cli_auth_credentials_stat
- name: Create credentials for docker cli registry auth
command: "docker --config={{ docker_cli_auth_config_path }} login -u {{ oreg_auth_user }} -p {{ oreg_auth_password }} {{ oreg_host }}"
when:
- oreg_auth_user is defined
- (not docker_cli_auth_credentials_stat.stat.exists or oreg_auth_credentials_replace) | bool
|