From 7fd5a4e79a7019babfc804562fe8ad8fcd25d5fd Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Wed, 21 Apr 2021 12:41:51 -0400 Subject: [PATCH] Fix issue where ad-hoc commands for multiple hosts ran on single host --- awx/main/tasks.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 7c0dd854d0..4008cbed66 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -2734,14 +2734,6 @@ class RunAdHocCommand(BaseTask): env['ANSIBLE_LOAD_CALLBACK_PLUGINS'] = '1' env['ANSIBLE_SFTP_BATCH_MODE'] = 'False' - # Create a directory for ControlPath sockets that is unique to each - # ad hoc command - cp_dir = os.path.join(private_data_dir, 'cp') - if not os.path.exists(cp_dir): - os.mkdir(cp_dir, 0o700) - # FIXME: more elegant way to manage this path in container - env['ANSIBLE_SSH_CONTROL_PATH'] = '/runner/cp' - return env def build_args(self, ad_hoc_command, private_data_dir, passwords):