Merge "Correct fernet token sync race condition"
This commit is contained in:
commit
a95c3537ec
|
@ -31,6 +31,11 @@ function autorotate {
|
|||
{% if inventory_hostname != host %}
|
||||
|
||||
# Fernet sync job to "{{ host }}"
|
||||
scp -o UserKnownHostsFile=/dev/null \
|
||||
-o StrictHostKeyChecking=no \
|
||||
$(ls -dtr {{ keystone_fernet_tokens_key_repository }}/* | sort -Vr) \
|
||||
{{ keystone_system_user_name }}@{{ hostvars[host]['ansible_host'] }}:{{ keystone_fernet_tokens_key_repository }}/
|
||||
|
||||
rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \
|
||||
-avz \
|
||||
--delete \
|
||||
|
|
Loading…
Reference in New Issue