Thanks Adrian 

command line parameters we could give ,but that also we need to open 
jenkins job and then add the variables.
My intention is we just give parameter like string parameter in jenkins and 
it would map to ansible variables .
Request to help me.

On Wednesday, October 24, 2018 at 2:12:42 PM UTC+5:30, Adrian Sebastian 
Dutu wrote:
>
> -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/320efdf6-e337-46e1-8f13-b17cb40426e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to