From 9b3532e762465b7f4f81459cfc96ed42cd5134d0 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 21 Mar 2025 23:17:16 -0700 Subject: update names --- 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..945edb9 --- /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: "10.0.0.0/8" + 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