From c3e9305bce9fd1aaf165779fb46570c683750e6f Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 4 May 2025 00:10:22 -0700 Subject: Tried to use docker ingress to solve x-real-ip on mail daemon but it didn't work for other ports --- playbooks/swarm_cluster.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 playbooks/swarm_cluster.yml (limited to 'playbooks/swarm_cluster.yml') diff --git a/playbooks/swarm_cluster.yml b/playbooks/swarm_cluster.yml new file mode 100644 index 0000000..6a13f8c --- /dev/null +++ b/playbooks/swarm_cluster.yml @@ -0,0 +1,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 + -- cgit v1.2.3-70-g09d2