Skip to content

Instantly share code, notes, and snippets.

@bcoca
Created June 4, 2020 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcoca/076e3f5d5456dbe8b0dd72bba6f87db6 to your computer and use it in GitHub Desktop.
Save bcoca/076e3f5d5456dbe8b0dd72bba6f87db6 to your computer and use it in GitHub Desktop.
- hosts: all
vars:
r_std: '{{regvar.get('stdout')|default('')}}'
tasks:
- command: ....
register: regvar
- assert:
that:
- "'error' not in r_std"
- command:
register: regvar
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment