diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 12:17:10 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 12:17:10 -0700 |
commit | 7040a443c5973be872cdf5f3a656e9f947650b2b (patch) | |
tree | 833dd0a9f2a6b0c5f2523a70b995965c95bd5f21 /playbooks/swarm_cluster.yml | |
parent | d0d07c491f157bef0174cc05ee3c308fe9f72c9b (diff) | |
download | infra-7040a443c5973be872cdf5f3a656e9f947650b2b.tar.gz infra-7040a443c5973be872cdf5f3a656e9f947650b2b.zip |
Refactor the swarm cluster role a bit
Diffstat (limited to 'playbooks/swarm_cluster.yml')
-rw-r--r-- | playbooks/swarm_cluster.yml | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/playbooks/swarm_cluster.yml b/playbooks/swarm_cluster.yml index 6a13f8c..8dadae4 100644 --- a/playbooks/swarm_cluster.yml +++ b/playbooks/swarm_cluster.yml @@ -1,24 +1,8 @@ --- -- 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] +- name: Deploy swarm cluster + hosts: swarm_cluster become: true roles: - - swarm_join + - swarm_cluster |