ansible-playbook and jenkins

92 views
Skip to first unread message

olga

unread,
Oct 12, 2014, 1:21:25 AM10/12/14
to ansible...@googlegroups.com
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

Jeroen Hoekx

unread,
Oct 13, 2014, 1:38:03 AM10/13/14
to ansible...@googlegroups.com
On 12 October 2014 07:21, olga <osu...@gmail.com> wrote:

> 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.
>
> Is there any option to see the output as we see in command prompt

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

That works for us.

Greetings,

Jeroen

Subramanian Olagappan

unread,
Oct 13, 2014, 2:33:15 AM10/13/14
to ansible...@googlegroups.com
Thanks Jeroen. This worked.



--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/DeTzrq4W1G8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAAAQQmB-SaXN4_oNvtjeKEMSbaMZBAbbo0jOkhs-YPOm9P9vBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages