retry gpg key import

GPG key import sometimes fail due to network partitions or errors on the
remote server. Retry the GPG key import up to 5 times if this happens,
so the playbook doesn't fail from temporary network issues.
This commit is contained in:
Nathan Typanski
2016-03-03 18:36:04 -05:00
parent f893376792
commit 9425b14798

View File

@@ -32,6 +32,10 @@
when: rvm1_gpg_keys != ''
become: yes
become_user: '{{ rvm1_user }}'
register: result
until: result.rc == 0
retries: 5
delay: 5
- name: Install rvm
command: >