Hi All,
I am trying to capture ansible output with a python subprocess command. If I capture:
childProcess = subprocess.Popen(“ansible-playbook …”, shell=True, subprocess.PIPE, subprocess.PIPE, cwd=dir)
res = childProcess.communicate()
Then res[0] will be the stdout of my ansible command, and res[1] will be the stderr of my ansible command, but both will be uncoloured…
Is there an easy way to force ansible to always issue colour output independent of the term type it is detecting?
Thanks,
Jason