Last active
December 27, 2016 19:30
-
-
Save BruceZu/af591f42da5d0b83a974e5884721d685 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
| Ansible debug module | |
| Return | |
| loop | |
| block | |
| error handling | |
| task name and variable |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
block:
with_first_found
loop control
loop_control:
label: "{{item.name}}"
loop_control:
pause: 3
Do-Until Loops link
loop: loop
work with register debug
Return: common return values
the registered variable’s string contents are accessible with the ‘stdout’ value
The registered result can be used in the “with_items” of a task if it is converted into a list (or already is a list)
“stdout_lines” is already available on the object
could also call “home_dirs.stdout.split()”
check the registered variable’s string contents