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:
@@ -32,6 +32,10 @@
|
|||||||
when: rvm1_gpg_keys != ''
|
when: rvm1_gpg_keys != ''
|
||||||
become: yes
|
become: yes
|
||||||
become_user: '{{ rvm1_user }}'
|
become_user: '{{ rvm1_user }}'
|
||||||
|
register: result
|
||||||
|
until: result.rc == 0
|
||||||
|
retries: 5
|
||||||
|
delay: 5
|
||||||
|
|
||||||
- name: Install rvm
|
- name: Install rvm
|
||||||
command: >
|
command: >
|
||||||
|
|||||||
Reference in New Issue
Block a user