From d3016aa94c32863f1f4860a3afe05293db910427 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 20 Dec 2017 15:29:02 +0100 Subject: [PATCH] mon: always run ceph-create-keys MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ceph-create-keys is idempotent so it's not an issue to run it each time we play ansible. This also fix issues where the 'creates' arg skips the task and no keys get generated on newer version, e.g during an upgrade. Closes: https://github.com/ceph/ceph-ansible/issues/2228 Signed-off-by: Sébastien Han (cherry picked from commit 0b55abe3d0fc6db6c93d963545781c05a31503bb) Signed-off-by: Sébastien Han --- roles/ceph-mon/tasks/ceph_keys.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index c778a27fa..29d9fb3c5 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -1,8 +1,6 @@ --- - name: collect admin and bootstrap keys command: ceph-create-keys --cluster {{ cluster }} -i {{ monitor_name }} -t 30 - args: - creates: /etc/ceph/{{ cluster }}.client.admin.keyring changed_when: false always_run: true when: -- 2.39.5