Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - set_fact:
- artifact_url: "{{ (artifact_list.content | from_json ).results | map(attribute='uri') | select('match', artifact_root_dir) | list }}" # will return a list or empty
- failed_when: not artifact_url or artifact_url | length != 1 #fail when not set/empty or list contains more than 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement