summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2016-03-31 15:18:48 -0400
committerJames Cammarata <jimi@sngx.net>2016-03-31 15:18:48 -0400
commit4e12168b3c6ebc04b6476af3c4116963e4268c20 (patch)
tree34ea78461fa7043c325da065f23225b1ae4f19cd
parent2f2e2c4611518822058500d18837266bcef8ca64 (diff)
downloadansible-4e12168b3c6ebc04b6476af3c4116963e4268c20.tar.gz
Fix logic error in script action plug related to use of shell.exists
-rw-r--r--lib/ansible/plugins/action/script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/script.py b/lib/ansible/plugins/action/script.py
index e7eb03f9f0..9b68883933 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