hpc-cloud/nuke.yml

19 lines
412 B
YAML

---
- hosts: all
become: True
name: Dummy to gather facts
tasks:
- shell: "systemctl stop docker"
- name: Stop docker service
systemd:
name: docker
state: stopped
- name: remove volumes
shell: "rm -rf /srv"
- hosts: cinder-storage
become: True
tasks:
- name: wipe cinder storage.
shell: "dd if=/dev/zero of={{ storage_volume }} bs=1M count=1 && sync"