New playbook to stop cluster gracefully

This commit is contained in:
IamTheFij 2022-11-18 08:57:41 -08:00
parent 049d9f0fe0
commit 3b9ad36ed0

View File

@ -1,7 +1,6 @@
---
- name: Stop cluster
hosts: consul_instances
serial: 1
- name: Stop Nomad
hosts: nomad_instances
tasks:
- name: Stop Nomad
@ -10,12 +9,20 @@
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