hpc-cloud/nuke.yml

17 lines
389 B
YAML
Raw 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"