Trying to call Ansible Project in Jenkins using Remote access API from AWS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Trying to call Ansible Project in Jenkins using Remote access API from AWS

Aaron Street
Hi, 

I have the need to configure each device in an auto scaling group with in AWS individually. On first boot they need to register with some third party servers and I dont want to save the credentials with in the AMI image

What I am looking to do is have the auto scaling group run a small bit of lambda code on launch that would call jenkins via the "remote Access API" to run a project, but I cant seem to work out how to pass a variable to the "invoke ansible playbook" plugin

This part of the project looks like 


So i want to call this project and set the inventory to the IP address of the new AWS instance. I am new to the remote access API and looking though the docs I don't get how / if I can do this? 


can any one tell me is I can do this or am i wasting my time fiddling? so far nothing is successful 


If not this way are there better ways to call a targeted ansible project from AWS auto scaling events? 


Thank you 


Aaron 



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/29f5fa25-ce6d-4330-a5df-a534b81da52a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.