fix: manage networks and services only for swarm_manager

This commit is contained in:
Adrien Waksberg 2022-06-27 15:54:51 +02:00
parent 5463a2b654
commit a515499a71

View file

@ -20,6 +20,7 @@
loop: '{{ swarm_networks|dict2items }}'
loop_control:
label: '{{ item.key }}'
when: swarm_manager
run_once: true
tags: swarm
@ -40,5 +41,6 @@
loop: '{{ swarm_services|dict2items }}'
loop_control:
label: '{{ item.key }}'
when: swarm_manager
run_once: true
tags: swarm