diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-03-21 23:17:16 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-03-21 23:17:16 -0700 |
commit | 9b3532e762465b7f4f81459cfc96ed42cd5134d0 (patch) | |
tree | c5ead56d4a11f046526f706ee837b0128824999c /playbooks/swarm-cluster.yml | |
parent | dde6850257c1181802b1e8cd46b8aadfe1551b1f (diff) | |
download | infra-9b3532e762465b7f4f81459cfc96ed42cd5134d0.tar.gz infra-9b3532e762465b7f4f81459cfc96ed42cd5134d0.zip |
update names
Diffstat (limited to 'playbooks/swarm-cluster.yml')
-rw-r--r-- | playbooks/swarm-cluster.yml | 24 |
1 files changed, 24 insertions, 0 deletions
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 + |