Add missing Ansible invocation debug env variables

This debug line is intended to aid in reproducing an ansible run
manually on the executor, but is missing several important env
variables.  Add them.

Change-Id: Ic1e05798d2f8c07cd71b17a76c599ee8d102b183
This commit is contained in:
James E. Blair 2019-03-20 15:51:42 -07:00
parent 01a8eb80f0
commit f1a310a15b
1 changed files with 8 additions and 2 deletions

View File

@ -1895,8 +1895,14 @@ class AnsibleJob(object):
with self.proc_lock:
if self.aborted:
return (self.RESULT_ABORTED, None)
self.log.debug("Ansible command: ANSIBLE_CONFIG=%s %s",
config_file, " ".join(shlex.quote(c) for c in cmd))
self.log.debug("Ansible command: ANSIBLE_CONFIG=%s ZUUL_JOBDIR=%s "
"ZUUL_JOB_LOG_CONFIG=%s PYTHONPATH=%s TMP=%s %s",
env_copy['ANSIBLE_CONFIG'],
env_copy['ZUUL_JOBDIR'],
env_copy['ZUUL_JOB_LOG_CONFIG'],
env_copy['PYTHONPATH'],
env_copy['TMP'],
" ".join(shlex.quote(c) for c in cmd))
self.proc = popen(
cmd,
cwd=self.jobdir.work_root,