this post was submitted on 11 Jun 2024
4 points (83.3% liked)
Ansible
238 readers
2 users here now
# TODO
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
what you need is a pre_task to query all nodes and get the leader magic bit in a var using register, like below.
that is how I would go about getting a docker swarm setup, that any help?