Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. - set_fact:
  2. artifact_url: "{{ (artifact_list.content | from_json ).results | map(attribute='uri') | select('match', artifact_root_dir) | list }}" # will return a list or empty
  3. 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