New playbook to stop cluster gracefully
This commit is contained in:
parent
049d9f0fe0
commit
3b9ad36ed0
@ -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
|
Loading…
Reference in New Issue
Block a user