# This playbook purges Ceph
# It removes: packages, configuration files and ALL THE DATA
----
-
- hosts:
- mons
- osds
tasks:
- name: Purge Ceph
- command: ceph-deploy purge {{ ansible_hostname }}
+ command: ceph-deploy purge {{ ansible_fqdn }}
delegate_to: 127.0.0.1
- name: Remove OSD data
ignore_errors: true
- name: Purge remaining data
- command: ceph-deploy purgedata {{ ansible_hostname }}
+ command: ceph-deploy purgedata {{ ansible_fqdn }}
delegate_to: 127.0.0.1
- name: Purge partitions