Discussion:
Best way to adjust Ansible options when running playbooks from Jenkins
a***@gmail.com
2018-11-29 16:30:53 UTC
Permalink
Hello,
I'm new Jenkins and my goal is to try and use Jenkins as a GUI frontend to
run Ansible playbooks on networking devices. The playbooks will do things
such as backing up configs or performing upgrades and other various
operations. I installed the Ansible plugin and I built a free style
project and successfully used the Ansible plugin to run a playbook (All
good as a first test...). With that said, how can I control the devices I
want the playbook to run against without going into "Build configuration"
and modifying the "Host subset" field (equivalent of using the --limit
option on the Ansible command line). I'd like to have others in my group
be able to run the Ansible playbooks, against networking devices of their
choice, without going into the "Build configuration" section of Jenkins.
Is there a way to do this?

Thanks
Al Silverstein
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4c64c6c9-03d6-4825-9416-54308280796b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeff Pearce
2018-11-29 17:35:10 UTC
Permalink
I don’t know anything about ansible, so this may be off base, but maybe add a job parameter to control it?

From: <jenkinsci-***@googlegroups.com> on behalf of "***@gmail.com" <***@gmail.com>
Reply-To: "jenkinsci-***@googlegroups.com" <jenkinsci-***@googlegroups.com>
Date: Thursday, November 29, 2018 at 8:38 AM
To: Jenkins Users <jenkinsci-***@googlegroups.com>
Subject: Best way to adjust Ansible options when running playbooks from Jenkins

Hello,
I'm new Jenkins and my goal is to try and use Jenkins as a GUI frontend to run Ansible playbooks on networking devices. The playbooks will do things such as backing up configs or performing upgrades and other various operations. I installed the Ansible plugin and I built a free style project and successfully used the Ansible plugin to run a playbook (All good as a first test...). With that said, how can I control the devices I want the playbook to run against without going into "Build configuration" and modifying the "Host subset" field (equivalent of using the --limit option on the Ansible command line). I'd like to have others in my group be able to run the Ansible playbooks, against networking devices of their choice, without going into the "Build configuration" section of Jenkins. Is there a way to do this?

Thanks
Al Silverstein
--
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 jenkinsci-users+***@googlegroups.com<mailto:jenkinsci-users+***@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4c64c6c9-03d6-4825-9416-54308280796b%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/4c64c6c9-03d6-4825-9416-54308280796b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/819FB1FE-13A1-437D-A38A-5BC5C0D523BD%40godaddy.com.
For more options, visit https://groups.google.com/d/optout.
a***@gmail.com
2018-11-29 21:00:29 UTC
Permalink
That was it, "parameterized builds". Thank you for pointing me in the
right direction.
Post by Jeff Pearce
I don’t know anything about ansible, so this may be off base, but maybe
add a job parameter to control it?
*Date: *Thursday, November 29, 2018 at 8:38 AM
*Subject: *Best way to adjust Ansible options when running playbooks from
Jenkins
Hello,
I'm new Jenkins and my goal is to try and use Jenkins as a GUI frontend to
run Ansible playbooks on networking devices. The playbooks will do things
such as backing up configs or performing upgrades and other various
operations. I installed the Ansible plugin and I built a free style
project and successfully used the Ansible plugin to run a playbook (All
good as a first test...). With that said, how can I control the devices I
want the playbook to run against without going into "Build configuration"
and modifying the "Host subset" field (equivalent of using the --limit
option on the Ansible command line). I'd like to have others in my group
be able to run the Ansible playbooks, against networking devices of their
choice, without going into the "Build configuration" section of Jenkins.
Is there a way to do this?
Thanks
Al Silverstein
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/4c64c6c9-03d6-4825-9416-54308280796b%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/4c64c6c9-03d6-4825-9416-54308280796b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a4d00405-d3ec-466d-a0a1-4be00f25036e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...