--- # docker_creds is a custom module from lib_utils # 'docker login' requires a docker.service running on the local host, this is an # alternative implementation that operates directly on config.json - name: Create credentials for docker cli registry auth (alternative) docker_creds: path: "{{ docker_cli_auth_config_path }}" registry: "{{ oreg_host }}" username: "{{ oreg_auth_user }}" password: "{{ oreg_auth_password }}" # Test that we can actually connect with provided info test_login: "{{ oreg_test_login | default(True) }}" proxy_vars: "{{ l_docker_creds_proxy_vars }}" image_name: "{{ l_docker_creds_image_name }}" when: - oreg_auth_user is defined register: crt_oreg_auth_credentials_create retries: 3 delay: 5 until: crt_oreg_auth_credentials_create is succeeded