From 0b55abe3d0fc6db6c93d963545781c05a31503bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?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=UTF-8 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 --- 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 834db483f..06c257026 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 check_mode: no when: