]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: always run ceph-create-keys
authorSébastien Han <seb@redhat.com>
Wed, 20 Dec 2017 14:29:02 +0000 (15:29 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 21 Dec 2017 14:30:45 +0000 (15:30 +0100)
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 <seb@redhat.com>
(cherry picked from commit 0b55abe3d0fc6db6c93d963545781c05a31503bb)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml

index c778a27fa85a965f401fa5812abec7da5b06f17a..29d9fb3c5b1f2e32bfb2b9d4ba2e80a00f6793d7 100644 (file)
@@ -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: