hpc-cloud/nuke.yml

22 lines
547 B
YAML
Raw Permalink Normal View History

2018-01-30 09:57:11 +01:00
---
2018-02-06 13:34:56 +01:00
# This playbook will reset the instalation to facilitate a new installation.
# All data is lost!
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:
- name: Stop docker service
2018-02-16 11:45:53 +01:00
shell: "systemctl stop docker"
2018-02-06 13:34:56 +01:00
- name: Verify docker is stopped.
2018-01-30 09:57:11 +01:00
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"