From: Alessandro Corbelli Date: Wed, 12 Mar 2014 14:05:42 +0000 (+0100) Subject: Use ansible_fqdn when copying from mons X-Git-Tag: v1.0.0~385^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36%2Fhead;p=ceph-ansible.git Use ansible_fqdn when copying from mons --- diff --git a/roles/mon/tasks/main.yml b/roles/mon/tasks/main.yml index 04331c9e1..1999f9486 100644 --- a/roles/mon/tasks/main.yml +++ b/roles/mon/tasks/main.yml @@ -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