ansible-playbook and jenkins

Hi !

I’m running ansible-playbook command in Jenkins, when ansible-playbook command is executed, the output is buffered and I see the ansible-playbook command output only after it finished.

+ ansible-playbook -i inventory/hosts.dev site.yml --limit dev1

Is there any option to see the output as we see in command prompt

Thanks,
Olga

Yes, there is. Run them as
/usr/bin/python2 -u /usr/bin/ansible-playbook

That works for us.

Greetings,

Jeroen

Thanks Jeroen. This worked.