-e allows you to pass variables to the command line. So you can put that in 
your job. Also, there's an ansible jenkins plugin. You can take a look at 
that.
https://wiki.jenkins.io/display/JENKINS/Ansible+Plugin

On Wednesday, October 24, 2018 at 8:40:34 AM UTC+2, kumar kittu wrote:
>
> Hello All,
>
> I have ansible-playbook which has variables defined and that playbook is 
> executed successfully from jenkins by creating job.
>
> my query is :
>
> I need to pass ansible variables defined in playbook from jenkins ,as 
> parameter(or what ever),so it would eliminate hard coding in 
> ansible-playbook.
>
> Searched a lot but couldn't get exact solution.
>
> Request anyone to help me at the earliest
>
> Thanks in advance
>

-- 
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/c940e59a-e939-4b32-8096-1159ebda2216%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to