From 3b9ad36ed0b94d09414ed9af1521fceae2190c41 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 18 Nov 2022 08:57:41 -0800 Subject: [PATCH] New playbook to stop cluster gracefully --- .../{stop-cluster => stop-cluster.yml} | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) rename ansible_playbooks/{stop-cluster => stop-cluster.yml} (68%) diff --git a/ansible_playbooks/stop-cluster b/ansible_playbooks/stop-cluster.yml similarity index 68% rename from ansible_playbooks/stop-cluster rename to ansible_playbooks/stop-cluster.yml index 26f26e8..0570472 100644 --- a/ansible_playbooks/stop-cluster +++ b/ansible_playbooks/stop-cluster.yml @@ -1,7 +1,6 @@ --- -- name: Stop cluster - hosts: consul_instances - serial: 1 +- name: Stop Nomad + hosts: nomad_instances tasks: - name: Stop Nomad @@ -10,14 +9,22 @@ state: stopped become: true +- name: Stop Vault + hosts: nomad_instances + + tasks: - name: Stop Vault systemd: name: vault state: stopped become: true - + +- name: Stop Consul + hosts: consul_instances + + tasks: - name: Stop Consul systemd: name: consul state: stopped - become: true \ No newline at end of file + become: true