summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceph-deploy/templates/clean_ceph.j2
blob: a089167d1992051db2350878ab86ab8cc6b9f88c (plain)
1
2
3
4
5
6
7
8
if [ -d "{{ ceph_cluster_dir[0] }}" ]; then
cd {{ ceph_cluster_dir[0] }}
ceph-deploy purge {{ ceph_cluster_hosts.stdout_lines[0] }}
ceph-deploy purgedata {{ ceph_cluster_hosts.stdout_lines[0] }}
ceph-deploy forgetkeys
cd ..
rm -r {{ ceph_cluster_dir[0] }}
fi