From f97d26470fc5b653239c85e50d305347f34daf00 Mon Sep 17 00:00:00 2001 From: Alessandro Corbelli Date: Wed, 12 Mar 2014 15:05:42 +0100 Subject: [PATCH] Use ansible_fqdn when copying from mons --- roles/mon/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3