A role to initialise a new Docker Swarm Manager and store the swarm join tokens as host variables under a fake host called swarm_tokens
.
Include this role in a playbook using a requirements.txt file.
- hosts: manager[0]
roles:
- manager
This role will be automatically built and deployed to Ansible Galaxy when a Semver tag is pushed to the repo.