Commit 838a9149 by Feanil Patel

Only pull down github keys when the user is supposed to be a github user.

parent aace703c
......@@ -126,7 +126,7 @@
url: "https://github.com/{{ item.name }}.keys"
return_content: true
# We don't care if absent users lack ssh keys
when: item.get('state', 'present') == 'present'
when: item.get('state', 'present') == 'present' and item.github is defined
with_items: "{{ user_info }}"
register: github_users_return
......
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