From df37f5f5b2919033f3c40934f048a20b5b1527dd Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 1 Oct 2020 18:04:08 +0200 Subject: [PATCH] The networks must have a global lscope. --- tasks/haproxy_networks.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tasks/haproxy_networks.yml b/tasks/haproxy_networks.yml index cf3d0a4..817ffd1 100644 --- a/tasks/haproxy_networks.yml +++ b/tasks/haproxy_networks.yml @@ -5,15 +5,16 @@ docker_network: name: '{{ item }}' driver: overlay + scope: swarm with_items: '{{ docker_swarm_haproxy_networks }}' - - name: Connect haproxy to the overlay networks - docker_network: - name: '{{ item }}' - connected: - - 'haproxy_haproxy' - appends: yes - with_items: '{{ docker_swarm_haproxy_networks }}' +# - name: Connect haproxy to the overlay networks +# docker_network: +# name: '{{ item }}' +# connected: +# - 'haproxy_haproxy' +# appends: yes +# with_items: '{{ docker_swarm_haproxy_networks }}' when: docker_swarm_manager_main_node | bool tags: [ 'haproxy', 'docker_haproxy', 'docker_swarm', 'docker', 'docker_network' ]