playbook to reset a cluster
This commit is contained in:
parent
35551f69c1
commit
59233d8019
15
nuke.yml
Normal file
15
nuke.yml
Normal file
@ -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
Block a user