]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix #73 by using `ansible_fqdn` 74/head
authorAlessandro Corbelli <alessandro.corbelli@guest.it>
Fri, 18 Apr 2014 08:55:31 +0000 (10:55 +0200)
committerAlessandro Corbelli <alessandro.corbelli@guest.it>
Fri, 18 Apr 2014 08:55:31 +0000 (10:55 +0200)
purge.yml

index 218c9ceb5938d826acd20159d6a470f8408f87fc..44b29135d033fd5d6cadd674b60397266e2e7390 100644 (file)
--- a/purge.yml
+++ b/purge.yml
@@ -2,8 +2,6 @@
 # This playbook purges Ceph
 # It removes: packages, configuration files and ALL THE DATA
 
----
-
 - hosts:
   - mons
   - osds
@@ -11,7 +9,7 @@
   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
@@ -19,7 +17,7 @@
     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