Commit 8f1de21f by Joseph Mulloy

Add descriptive names to debug/fail tasks OPS-1433

parent d429b84a
......@@ -130,13 +130,15 @@
with_items: "{{ user_info }}"
register: github_users_return
- debug:
- name: Print warning if github user(s) missing ssh key
debug:
msg: "User {{ item.item.name }} doesn't have an SSH key associated with their github account"
with_items: "{{ github_users_return.results | default([]) }}"
# We skip users in the previous task, and they end up with no content_length
when: ('content' in item and item.content == "")
- fail:
- name: Halt if USER_FAIL_MISSING_KEYS is true and github user(s) missing ssh key
fail:
msg: "User {{ item.item.name }} doesn't have an SSH key associated with their github account"
with_items: "{{ github_users_return.results | default([]) }}"
# We skip users in the previous task, and they end up with no content_length
......
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