blob: 6a13f8c4aedf78adade470999c55105ccb543755 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
- name: Configure Docker Swarm Firewall Rules
hosts: swarm
become: true
tasks:
- name: Enable Local Swarm Communications
community.general.ufw:
rule: allow
from: "{{ homelab_network }}"
state: enabled
- name: Setup swarm on init node
hosts: swarm[0]
become: true
roles:
- swarm_init
- name: Join non-init nodes
hosts: swarm:!swarm[0]
become: true
roles:
- swarm_join
|