Skip to content

Instantly share code, notes, and snippets.

@garlandkr
Created May 6, 2015 16:57
Show Gist options
  • Save garlandkr/e50bc8e6544c7a8e005c to your computer and use it in GitHub Desktop.
Save garlandkr/e50bc8e6544c7a8e005c to your computer and use it in GitHub Desktop.
- name: Register multi-line shell output
shell: blah -f -u -b -a -r
register: license_check
- name: Look for error in output
debug: "This is just used as our needed action"
failed_when: '"Specific error" in item'
with_items: license_check.stdout_lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment