Thank you Ted, this is also useful, not for this particular purpose, but 
useful...

Dana četvrtak, 2. ožujka 2017. u 19:49:20 UTC+1, korisnik Ted Zlatanov 
napisao je:
>
> On Thu, 2 Mar 2017 01:27:54 -0800 (PST) ishan jain <[email protected] 
> <javascript:>> wrote: 
>
> ij> I would suggest that you add server2 as a slave in your Jenkins. 
> Create a 
> ij> Jenkins job, configure it to run on this slave and specify the Ansible 
> ij> commands in the build step just like you execute any other shell 
> command. 
>
> Also note that an Ansible playbook can be turned into a shell script 
> easily. 
>
> ``` 
> #!/usr/bin/ansible-playbook 
>
> - hosts: localhost 
>   tasks: 
>     - debug: var=item 
>       with_items: "{{ [ 1, 2, 3 ] }}" 
> ``` 
>
> Ted 
>
>

-- 
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/896a0fbd-7a05-497b-94c9-53f9a0b48f21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to