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
Sébastien Han 2017-12-20 15:29:02 +01:00
parent ad54e19262
commit 0b55abe3d0
1 changed files with 0 additions and 2 deletions

View File

@ -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: