Fixed some swarm-related bugs

This commit is contained in:
Jef Roosens 2021-12-12 22:34:38 +01:00
parent a68aa78972
commit be6e60bb97
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
5 changed files with 28 additions and 1 deletions

View file

@ -24,6 +24,15 @@
rule: allow
port: 2222
- name: Open necessary ports for Docker swarm communication.
community.general.ufw:
rule: allow
port: "{{ item }}"
loop:
- 2377 # cluster management communications
- 7946 # communication among nodes
- 4789 # overlay network traffic
- name: Block everything else by default & enable firewall.
community.general.ufw:
default: deny