Created
June 4, 2020 00:18
-
-
Save bcoca/076e3f5d5456dbe8b0dd72bba6f87db6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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