diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index a980e49ef4f..70aa86782d1 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -141,7 +141,7 @@ def check_conditional(conditional): return not var.startswith("$") def is_unset(var): return var.startswith("$") - return eval(conditional) + return eval(conditional.replace("\n", "\\n")) def is_executable(path): '''is the given path executable?'''