playbook to reset a cluster
This commit is contained in:
parent
35551f69c1
commit
59233d8019
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
name: Dummy to gather facts
|
||||||
|
tasks:
|
||||||
|
- name: Stop docker service
|
||||||
|
systemd:
|
||||||
|
name: docker
|
||||||
|
state: stopped
|
||||||
|
- name: remove volumes
|
||||||
|
shell: "rm -rf /srv"
|
||||||
|
|
||||||
|
- hosts: cinder-storage
|
||||||
|
tasks:
|
||||||
|
- name: wipe cinder storage.
|
||||||
|
shell: "dd if=/dev/zero of={{ storage_volume }} bs=1M count=1 && sync"
|
Loading…
Reference in New Issue