summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceph-purge/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-purge/tasks')
-rw-r--r--deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml b/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml
new file mode 100644
index 00000000..8bf3a3ed
--- /dev/null
+++ b/deploy/adapters/ansible/roles/ceph-purge/tasks/main.yml
@@ -0,0 +1,27 @@
+- name: clear tmp files
+ local_action: shell rm -rf /tmp/ceph*
+ tags:
+ - ceph_purge
+ - ceph_deploy
+
+- name: install ceph-related packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items:
+ - ceph-deploy
+ tags:
+ - ceph_purge
+ - ceph_deploy
+
+- name: purge ceph
+ shell: "ceph-deploy purge {{ inventory_hostname }}; ceph-deploy purgedata {{ inventory_hostname }}; ceph-deploy forgetkeys"
+ tags:
+ - ceph_purge
+ - ceph_deploy
+
+- name: remove monmap
+ file: path="/tmp/monmap" state="absent"
+ tags:
+ - ceph_purge
+ - ceph_deploy
+
+