mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-15 19:42:06 +00:00
Fix connection tests. (#1202)
This commit is contained in:
parent
3da2799e03
commit
a349c5eed7
@ -133,8 +133,24 @@
|
|||||||
|
|
||||||
- name: Get proxied daemon URLs
|
- name: Get proxied daemon URLs
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
docker_daemon_frontend_https: "https://{{ nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress if current_container_network_ip else nginx_container.container.NetworkSettings.IPAddress }}:5000"
|
# Since Docker 29, nginx_container.container.NetworkSettings.IPAddress no longer exists.
|
||||||
docker_daemon_frontend_http: "http://{{ nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress if current_container_network_ip else nginx_container.container.NetworkSettings.IPAddress }}:6000"
|
# Use the bridge network's IP address instead...
|
||||||
|
docker_daemon_frontend_https: >-
|
||||||
|
https://{{
|
||||||
|
nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress
|
||||||
|
if current_container_network_ip else (
|
||||||
|
nginx_container.container.NetworkSettings.IPAddress
|
||||||
|
| default(nginx_container.container.NetworkSettings.Networks['bridge'].IPAddress)
|
||||||
|
)
|
||||||
|
}}:5000
|
||||||
|
docker_daemon_frontend_http: >-
|
||||||
|
http://{{
|
||||||
|
nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress
|
||||||
|
if current_container_network_ip else (
|
||||||
|
nginx_container.container.NetworkSettings.IPAddress
|
||||||
|
| default(nginx_container.container.NetworkSettings.Networks['bridge'].IPAddress)
|
||||||
|
)
|
||||||
|
}}:6000
|
||||||
|
|
||||||
- name: Wait for registry frontend
|
- name: Wait for registry frontend
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user