mirror of https://github.com/ceph/ceph-ansible.git
Fix #73 by using `ansible_fqdn`
parent
1d5ec9ae1e
commit
c26b269b5a
|
@ -2,8 +2,6 @@
|
||||||
# This playbook purges Ceph
|
# This playbook purges Ceph
|
||||||
# It removes: packages, configuration files and ALL THE DATA
|
# It removes: packages, configuration files and ALL THE DATA
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- mons
|
- mons
|
||||||
- osds
|
- osds
|
||||||
|
@ -11,7 +9,7 @@
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Purge Ceph
|
- name: Purge Ceph
|
||||||
command: ceph-deploy purge {{ ansible_hostname }}
|
command: ceph-deploy purge {{ ansible_fqdn }}
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
|
|
||||||
- name: Remove OSD data
|
- name: Remove OSD data
|
||||||
|
@ -19,7 +17,7 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Purge remaining data
|
- name: Purge remaining data
|
||||||
command: ceph-deploy purgedata {{ ansible_hostname }}
|
command: ceph-deploy purgedata {{ ansible_fqdn }}
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
|
|
||||||
- name: Purge partitions
|
- name: Purge partitions
|
||||||
|
|
Loading…
Reference in New Issue