From 728e80df5cd28c76435a9408312b29c24c7f79e7 Mon Sep 17 00:00:00 2001 From: Dexter John Genterone Date: Wed, 30 Apr 2014 16:02:07 +0800 Subject: [PATCH] keys are now copied from the first available mon host since we're now using fsid for the directory name, it should be safe to just copy the keys from all mon hosts. Once they are copied, the rest of the hosts will just skip copying. :) --- 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 bf2255435..b0b0c3e54 100644 --- a/roles/mon/tasks/main.yml +++ b/roles/mon/tasks/main.yml @@ -34,7 +34,7 @@ - name: Copy keys to the ansible server fetch: src={{ item }} dest=fetch/{{ fsid }}/{{ item }} flat=yes - when: ansible_fqdn == hostvars[groups['mons'][0]]['ansible_fqdn'] and cephx + when: 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.39.5