From 19f1f8448dd76f022aef37639d302b6918513f18 Mon Sep 17 00:00:00 2001 From: IamTheFij Date: Mon, 14 Nov 2022 23:11:13 -0800 Subject: [PATCH] WIP: Add a new playbook for stopping cluster Hopefully without data loss --- ansible_playbooks/stop-cluster | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ansible_playbooks/stop-cluster diff --git a/ansible_playbooks/stop-cluster b/ansible_playbooks/stop-cluster new file mode 100644 index 0000000..26f26e8 --- /dev/null +++ b/ansible_playbooks/stop-cluster @@ -0,0 +1,23 @@ +--- +- name: Stop cluster + hosts: consul_instances + serial: 1 + + tasks: + - name: Stop Nomad + systemd: + name: nomad + state: stopped + become: true + + - name: Stop Vault + systemd: + name: vault + state: stopped + become: true + + - name: Stop Consul + systemd: + name: consul + state: stopped + become: true \ No newline at end of file