diff options
author | James Cammarata <jimi@sngx.net> | 2016-03-31 15:18:48 -0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-03-31 15:18:48 -0400 |
commit | 4e12168b3c6ebc04b6476af3c4116963e4268c20 (patch) | |
tree | 34ea78461fa7043c325da065f23225b1ae4f19cd | |
parent | 2f2e2c4611518822058500d18837266bcef8ca64 (diff) | |
download | ansible-4e12168b3c6ebc04b6476af3c4116963e4268c20.tar.gz |
Fix logic error in script action plug related to use of shell.exists
-rw-r--r-- | lib/ansible/plugins/action/script.py | 2 |
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 |