An alternative, which you may like, is to install Ansible Tower, and then
use ansible-tower-cli in your shell step.

It makes integration with Jenkins a one liner.

It will get you nicer output, particularly for a larger number of hosts,
than Jenkins, and also some nice ways to edit inventory and identify
problems.



On Mon, Nov 17, 2014 at 7:08 AM, Manuel Jesús Recena Soto <[email protected]>
wrote:

> Hello Alex,
>
> As Torsten said you, you can use "Shell buildstep" and invoke your
> playbook (Ansible).
> At ClinkerHQ (Hosted CI service based on Jenkins) you can available
> Ansible Playbook.
>
> Disclaimer: I work at ClinkerHQ.
>
> Regards,
>
> On 15 November 2014 09:47, Torsten Reinhard <[email protected]>
> wrote:
> > Hi,
> >
> > why dont use a “Shell” Buildstep and inside just do:
> >
> > ansible-playbook –i /path/to/hosts playbook.yml –v –extra-vars ..... and
> so
> > on?
> >
> > Of course you need an Ansible installation on your system, first.
> >
> > That´s the way how I´ve setup this – and all playbooks are executed
> > immediately after a SVN commit – running against local virtual
> environments.
> >
> > Regards, Torsten
> >
> > From: Alex T
> > Sent: Thursday, November 13, 2014 9:27 AM
> > To: [email protected]
> > Subject: [ansible-project] Ansible + Jenkins
> >
> > Hi!
> > Everybody knows, how to run ansible playbook from jenkins ci?
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ansible Project" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/fd43f237-4bf9-4913-a442-5c7e8c44b09d%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ansible Project" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/18684390802C4A8D9689089F90394B39%40SamsungRF710
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Manuel Jesús Recena Soto
> Founder, CEO & CTO of klicap - ingeniería del puzle
>
> mobile phone +34 664 000 629
> work phone + 34 954 894 322
> www.klicap.es | blog.klicap.es
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL4oHL8cM%2B8Fe_PKf1GGK9oYJnHb_NkjGPpKo6BtGea-%3DziuXg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwpXNFrh8vOsO6-%3DRhjS8Us%2B3zSzypU8a4MgGJjrFy9bA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to