Commit 8e6d6c66 by Feanil Patel

Retry if we can't get to github.

We sometimes can't get to github because of intermittent network issues. We should
try a few times before we declare it a failure.
parent ff122c85
......@@ -128,6 +128,7 @@
# We don't care if absent users lack ssh keys
when: item.get('state', 'present') == 'present' and item.github is defined
with_items: "{{ user_info }}"
retries: 5
register: github_users_return
- name: Print warning if github user(s) missing ssh key
......@@ -150,6 +151,7 @@
exclusive: yes
key: "https://github.com/{{ item.name }}.keys"
when: item.github is defined and item.get('state', 'present') == 'present'
retries: 5
with_items: "{{ user_info }}"
- name: Create bashrc file for normal users
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment