From 4e12168b3c6ebc04b6476af3c4116963e4268c20 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 31 Mar 2016 15:18:48 -0400 Subject: [PATCH] Fix logic error in script action plug related to use of shell.exists --- lib/ansible/plugins/action/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/script.py b/lib/ansible/plugins/action/script.py index e7eb03f9f0e..9b688839335 100644 --- a/lib/ansible/plugins/action/script.py +++ b/lib/ansible/plugins/action/script.py @@ -54,7 +54,7 @@ class ActionModule(ActionBase): # do not run the command if the line contains removes=filename # and the filename does not exist. This allows idempotence # of command executions. - if self._remote_file_exists(removes): + if not self._remote_file_exists(removes): return dict(skipped=True, msg=("skipped, since %s does not exist" % removes)) # the script name is the first item in the raw params, so we split it