Last active
August 29, 2015 14:04
-
-
Save tgerla/68acffe05396a1f59252 to your computer and use it in GitHub Desktop.
This file contains 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
- command: grep string file | |
ignore_errors: yes | |
register: result | |
# How to set this fact so that it is a boolean variable, not a string? | |
- set_fact: | |
got_string: "{{ (result|success)|bool }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment