]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Use ansible_fqdn when copying from mons 36/head
authorAlessandro Corbelli <alessandro.corbelli@guest.it>
Wed, 12 Mar 2014 14:05:42 +0000 (15:05 +0100)
committerAlessandro Corbelli <alessandro.corbelli@guest.it>
Wed, 12 Mar 2014 14:05:42 +0000 (15:05 +0100)
roles/mon/tasks/main.yml

index 04331c9e12a3f757ee98460cf9cc053864248aa4..1999f94868afbd2df9678e510968037411fe2b16 100644 (file)
@@ -29,7 +29,7 @@
 
 - name: Copy keys to the ansible server
   fetch: src={{ item }} dest=fetch/
-  when: ansible_hostname == hostvars[groups['mons'][0]]['ansible_hostname'] and cephx
+  when: ansible_fqdn == hostvars[groups['mons'][0]]['ansible_fqdn'] and cephx
   with_items:
     - /etc/ceph/ceph.client.admin.keyring # just in case another application needs it
     - /var/lib/ceph/bootstrap-osd/ceph.keyring # this handles the non-colocation case