tasks:
- name: Init a new Docker Swarm
community.docker.docker_swarm:
state: present
advertise_addr: wg0
listen_addr: wg0
data_path_addr: wg0
It shows the same, it seems data-path-addr is ignored:
# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 10.1.3.1:7946 0.0.0.0:* LISTEN 21029/dockerd
tcp 0 0 10.1.3.1:2377 0.0.0.0:* LISTEN 21029/dockerd
udp 0 0 10.1.3.1:7946 0.0.0.0:* 21029/dockerd
udp 0 0 0.0.0.0:4789 0.0.0.0:* -
It seems strange that only 2 show listen and one is missing PID/name.
Just tried again with your command line: same result again.
You want to create an issue on Github (link)? But be aware this might take days or weeks to get a response - and it might never get fixed.
This is really annoying as I just invested a week to try to get everything up and running with ansible, specifically to use WireGuard mesh with individual pre-shared keys and Docker Swarm on top
Thanks for trying and confirming my issue. Yes, I noticed the missing PID too and am wondering why it is missing.
But I decided to go forward and play with swarm anyway. At least my other interfaces can’t be reached from the internet, so I guess the risk from an open port is negliable.