mirror of https://github.com/ceph/ceph-ansible.git
Add run_once to 'copy keys to the ansible server'
I have seen a number of failures on this task due to mismatch of checksum of source file and destination. I suspect this is due to a race condition caused by several hosts simultaneously copying the same file to single location on the deployment server. This change simply updates the 'copy keys to the ansible server' task by adding 'run_once', which limits the task to being run on a single MON host. Closes issue #410pull/448/head
parent
8d14048bac
commit
5db9f45c04
|
@ -39,6 +39,7 @@
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ fetch_directory }}/{{ fsid }}/{{ item }}"
|
dest: "{{ fetch_directory }}/{{ fsid }}/{{ item }}"
|
||||||
flat: yes
|
flat: yes
|
||||||
|
run_once: true
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ ceph_keys.stdout_lines }}"
|
- "{{ ceph_keys.stdout_lines }}"
|
||||||
- /var/lib/ceph/bootstrap-osd/ceph.keyring
|
- /var/lib/ceph/bootstrap-osd/ceph.keyring
|
||||||
|
|
Loading…
Reference in New Issue