Github user as22323 commented on the issue: https://github.com/apache/metron/pull/1046 @mmiklavc. One potential solution is to use changeAnsibleControlPath() to set the ["ANSIBLE_SSH_CONTROL_PATH"](https://docs.ansible.com/ansible/2.4/config.html#envvar-ANSIBLE_SSH_CONTROL_PATH) environment variable before running the playbook. With this PR's existing code the only change that would need to be done is commenting out the #sed command between the if-fi and replacing it with the following: ``` export ANSIBLE_SSH_CONTROL_PATH=$(echo $ansiblecontrolpath) ``` With this approach the environment variable seems to override the control_path in ansible.cfg and the ansible.cfg does not get changed. I tested the line change in MacOS (ansible v 2.2.2.0) by doing the following -Intentionally put a bad control_path in ansible.cfg and run run.sh without changeAnsibleControlPath (expecting an error). ![red 2018-06-04 at 10 44 25 pm](https://user-images.githubusercontent.com/19417355/40949333-812f2c22-683b-11e8-9f67-32894b8ec202.png) -Next I updated run.sh with the "export ANSIBLE_SSH_CONTROL_PATH" line change in changeAnsibleControlPath(). It was able to get it running past TASK [setup] ![green shot 2018-06-05 at 12 50 53 am](https://user-images.githubusercontent.com/19417355/40949337-853eff9a-683b-11e8-9e4e-5131829b95bc.png) I didn't test with the Linux operating systems yet.
---