--- # Bring up a docker swarm # needs community docker module installed: # run $`ansible-galaxy collection install community.docker` - name: Ensure swarm is initialized community.docker.docker_swarm: state: present # advertise_addr: eth1 # necessary for testing setup on vagrant become: true - name: Ensure public network exists community.docker.docker_network: name: public driver: overlay state: present become: true