fix: manage networks and services only for swarm_manager
This commit is contained in:
parent
5463a2b654
commit
a515499a71
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue