hpc-cloud/nuke.yml

19 lines
412 B
YAML
Raw Normal View History

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