summaryrefslogtreecommitdiff
path: root/zuul/ansible
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2022-04-06 15:58:49 -0700
committerJames E. Blair <jim@acmegating.com>2022-04-13 14:17:04 -0700
commit810c9e31ef4573a3b1769e53bf04c623c8462b42 (patch)
tree3210ce4d0981d47a536fd764b96666711b77165b /zuul/ansible
parent3ec48b986e2b50671498fb2036e4731aaed559fc (diff)
downloadzuul-810c9e31ef4573a3b1769e53bf04c623c8462b42.tar.gz
Remove localhost restriction from command.py
We now allow executing code on localhost, so remove this restriction. Change-Id: I8677674302be666529733158b72af8b6e5f45979
Diffstat (limited to 'zuul/ansible')
-rw-r--r--zuul/ansible/base/action/command.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/zuul/ansible/base/action/command.py b/zuul/ansible/base/action/command.py
index c229bfd2b..52202bff9 100644
--- a/zuul/ansible/base/action/command.py
+++ b/zuul/ansible/base/action/command.py
@@ -15,16 +15,12 @@
from zuul.ansible import paths
-from ansible.errors import AnsibleError
command = paths._import_ansible_action_plugin("command")
class ActionModule(command.ActionModule):
def run(self, tmp=None, task_vars=None):
- if paths._is_localhost_task(self):
- raise AnsibleError("Executing local code is prohibited")
-
# we need the zuul_log_id on shell and command tasks
host = paths._sanitize_filename(task_vars.get('inventory_hostname'))
if self._task.action in (