From 9b3532e762465b7f4f81459cfc96ed42cd5134d0 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 21 Mar 2025 23:17:16 -0700 Subject: update names --- deploy.yml | 20 ++++++++++---------- playbooks/ceph-mount.yml | 7 +++++++ playbooks/common.yml | 7 +++++++ playbooks/deploy-ceph-mount.yml | 7 ------- playbooks/deploy-common.yml | 7 ------- playbooks/deploy-docker.yml | 7 ------- playbooks/deploy-keepalived.yml | 7 ------- playbooks/deploy-nginx-proxy.yml | 7 ------- playbooks/deploy-outbound.yml | 7 ------- playbooks/deploy-pihole.yml | 7 ------- playbooks/deploy-portainer.yml | 7 ------- playbooks/deploy-swarm-cluster.yml | 24 ------------------------ playbooks/deploy-traefik.yml | 7 ------- playbooks/docker.yml | 7 +++++++ playbooks/keepalived.yml | 7 +++++++ playbooks/nginx-proxy.yml | 7 +++++++ playbooks/outbound.yml | 7 +++++++ playbooks/pihole.yml | 7 +++++++ playbooks/portainer.yml | 7 +++++++ playbooks/swarm-cluster.yml | 24 ++++++++++++++++++++++++ playbooks/traefik.yml | 7 +++++++ 21 files changed, 97 insertions(+), 97 deletions(-) create mode 100644 playbooks/ceph-mount.yml create mode 100644 playbooks/common.yml delete mode 100644 playbooks/deploy-ceph-mount.yml delete mode 100644 playbooks/deploy-common.yml delete mode 100644 playbooks/deploy-docker.yml delete mode 100644 playbooks/deploy-keepalived.yml delete mode 100644 playbooks/deploy-nginx-proxy.yml delete mode 100644 playbooks/deploy-outbound.yml delete mode 100644 playbooks/deploy-pihole.yml delete mode 100644 playbooks/deploy-portainer.yml delete mode 100644 playbooks/deploy-swarm-cluster.yml delete mode 100644 playbooks/deploy-traefik.yml create mode 100644 playbooks/docker.yml create mode 100644 playbooks/keepalived.yml create mode 100644 playbooks/nginx-proxy.yml create mode 100644 playbooks/outbound.yml create mode 100644 playbooks/pihole.yml create mode 100644 playbooks/portainer.yml create mode 100644 playbooks/swarm-cluster.yml create mode 100644 playbooks/traefik.yml diff --git a/deploy.yml b/deploy.yml index f15c152..b91f9b7 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,31 +1,31 @@ --- - name: Common - ansible.builtin.import_playbook: playbooks/deploy-common.yml + ansible.builtin.import_playbook: playbooks/common.yml - name: Docker - ansible.builtin.import_playbook: playbooks/deploy-docker.yml + ansible.builtin.import_playbook: playbooks/docker.yml - name: NGINX Proxy - ansible.builtin.import_playbook: playbooks/deploy-nginx-proxy.yml + ansible.builtin.import_playbook: playbooks/nginx-proxy.yml - name: Outbound - ansible.builtin.import_playbook: playbooks/deploy-outbound.yml + ansible.builtin.import_playbook: playbooks/outbound.yml - name: Ceph mountpoints - ansible.builtin.import_playbook: playbooks/deploy-ceph-mount.yml + ansible.builtin.import_playbook: playbooks/ceph-mount.yml - name: Swarm - ansible.builtin.import_playbook: playbooks/deploy-swarm-cluster.yml + ansible.builtin.import_playbook: playbooks/swarm-cluster.yml - name: Traefik - ansible.builtin.import_playbook: playbooks/deploy-traefik.yml + ansible.builtin.import_playbook: playbooks/traefik.yml - name: Portainer - ansible.builtin.import_playbook: playbooks/deploy-portainer.yml + ansible.builtin.import_playbook: playbooks/portainer.yml - name: Keepalived - ansible.builtin.import_playbook: playbooks/deploy-portainer.yml + ansible.builtin.import_playbook: playbooks/portainer.yml - name: Pihole - ansible.builtin.import_playbook: playbooks/deploy-pihole.yml + ansible.builtin.import_playbook: playbooks/pihole.yml diff --git a/playbooks/ceph-mount.yml b/playbooks/ceph-mount.yml new file mode 100644 index 0000000..de2dd5b --- /dev/null +++ b/playbooks/ceph-mount.yml @@ -0,0 +1,7 @@ +--- + +- name: Setup ceph + hosts: ceph + become: true + roles: + - ceph diff --git a/playbooks/common.yml b/playbooks/common.yml new file mode 100644 index 0000000..49ba22a --- /dev/null +++ b/playbooks/common.yml @@ -0,0 +1,7 @@ +--- + +- name: Common setup + hosts: all + become: true + roles: + - common diff --git a/playbooks/deploy-ceph-mount.yml b/playbooks/deploy-ceph-mount.yml deleted file mode 100644 index de2dd5b..0000000 --- a/playbooks/deploy-ceph-mount.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: Setup ceph - hosts: ceph - become: true - roles: - - ceph diff --git a/playbooks/deploy-common.yml b/playbooks/deploy-common.yml deleted file mode 100644 index 49ba22a..0000000 --- a/playbooks/deploy-common.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: Common setup - hosts: all - become: true - roles: - - common diff --git a/playbooks/deploy-docker.yml b/playbooks/deploy-docker.yml deleted file mode 100644 index a355bd3..0000000 --- a/playbooks/deploy-docker.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: Docker setup - hosts: docker - become: true - roles: - - docker diff --git a/playbooks/deploy-keepalived.yml b/playbooks/deploy-keepalived.yml deleted file mode 100644 index e6fc289..0000000 --- a/playbooks/deploy-keepalived.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: keepalived setup - hosts: keepalived - become: true - roles: - - keepalived diff --git a/playbooks/deploy-nginx-proxy.yml b/playbooks/deploy-nginx-proxy.yml deleted file mode 100644 index 329f186..0000000 --- a/playbooks/deploy-nginx-proxy.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: nginx-proxy setup - hosts: nginx-proxy - become: true - roles: - - nginx-proxy diff --git a/playbooks/deploy-outbound.yml b/playbooks/deploy-outbound.yml deleted file mode 100644 index 5867313..0000000 --- a/playbooks/deploy-outbound.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: outbound setup - hosts: outbound - become: true - roles: - - outbound diff --git a/playbooks/deploy-pihole.yml b/playbooks/deploy-pihole.yml deleted file mode 100644 index 6a8b523..0000000 --- a/playbooks/deploy-pihole.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: pihole setup - hosts: pihole - become: true - roles: - - pihole diff --git a/playbooks/deploy-portainer.yml b/playbooks/deploy-portainer.yml deleted file mode 100644 index 1eb71d4..0000000 --- a/playbooks/deploy-portainer.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: portainer setup - hosts: portainer - become: true - roles: - - portainer diff --git a/playbooks/deploy-swarm-cluster.yml b/playbooks/deploy-swarm-cluster.yml deleted file mode 100644 index 945edb9..0000000 --- a/playbooks/deploy-swarm-cluster.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- - -- 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 - diff --git a/playbooks/deploy-traefik.yml b/playbooks/deploy-traefik.yml deleted file mode 100644 index e26cf4b..0000000 --- a/playbooks/deploy-traefik.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- - -- name: traefik setup - hosts: traefik - become: true - roles: - - traefik diff --git a/playbooks/docker.yml b/playbooks/docker.yml new file mode 100644 index 0000000..a355bd3 --- /dev/null +++ b/playbooks/docker.yml @@ -0,0 +1,7 @@ +--- + +- name: Docker setup + hosts: docker + become: true + roles: + - docker diff --git a/playbooks/keepalived.yml b/playbooks/keepalived.yml new file mode 100644 index 0000000..e6fc289 --- /dev/null +++ b/playbooks/keepalived.yml @@ -0,0 +1,7 @@ +--- + +- name: keepalived setup + hosts: keepalived + become: true + roles: + - keepalived diff --git a/playbooks/nginx-proxy.yml b/playbooks/nginx-proxy.yml new file mode 100644 index 0000000..329f186 --- /dev/null +++ b/playbooks/nginx-proxy.yml @@ -0,0 +1,7 @@ +--- + +- name: nginx-proxy setup + hosts: nginx-proxy + become: true + roles: + - nginx-proxy diff --git a/playbooks/outbound.yml b/playbooks/outbound.yml new file mode 100644 index 0000000..5867313 --- /dev/null +++ b/playbooks/outbound.yml @@ -0,0 +1,7 @@ +--- + +- name: outbound setup + hosts: outbound + become: true + roles: + - outbound diff --git a/playbooks/pihole.yml b/playbooks/pihole.yml new file mode 100644 index 0000000..6a8b523 --- /dev/null +++ b/playbooks/pihole.yml @@ -0,0 +1,7 @@ +--- + +- name: pihole setup + hosts: pihole + become: true + roles: + - pihole diff --git a/playbooks/portainer.yml b/playbooks/portainer.yml new file mode 100644 index 0000000..1eb71d4 --- /dev/null +++ b/playbooks/portainer.yml @@ -0,0 +1,7 @@ +--- + +- name: portainer setup + hosts: portainer + become: true + roles: + - portainer 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 + diff --git a/playbooks/traefik.yml b/playbooks/traefik.yml new file mode 100644 index 0000000..e26cf4b --- /dev/null +++ b/playbooks/traefik.yml @@ -0,0 +1,7 @@ +--- + +- name: traefik setup + hosts: traefik + become: true + roles: + - traefik -- cgit v1.2.3-70-g09d2