mirror of https://github.com/ceph/ceph-ansible.git
mon: always run ceph-create-keys
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>pull/2298/head
parent
ad54e19262
commit
0b55abe3d0
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: collect admin and bootstrap keys
|
- name: collect admin and bootstrap keys
|
||||||
command: ceph-create-keys --cluster {{ cluster }} -i {{ monitor_name }} -t 30
|
command: ceph-create-keys --cluster {{ cluster }} -i {{ monitor_name }} -t 30
|
||||||
args:
|
|
||||||
creates: /etc/ceph/{{ cluster }}.client.admin.keyring
|
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: no
|
check_mode: no
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue