Discussion:
[ansible-project] Using Ansible to provision Jenkins
Anthony Green
2015-07-06 09:31:06 UTC
Permalink
I'm using Ansible to provision a machine with Jenkins within a Docker
container

As part of the provisioning process I wait until Jenkins is running and
then download the CLI to continue the provisioning by executing CLI
commands.
The jar file is being downloaded to the host machine.

I was wondering if this was necessarily the best approach ?
Could the CLI jar be downloaded to my workstation instead and the commands
executed from there?
Could I use Groovy scripts to provision the machine ?
Other suggestions?
--
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 ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/39af6126-0ba0-4c22-8573-5815f456208e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Maekawa, Naomi
2015-07-06 13:44:08 UTC
Permalink
hi anthony,

you can check delegation and local_action to download the jenkins cli to
your local workstation:
https://docs.ansible.com/playbooks_delegation.html

best,
naomi.
---

On Mon, Jul 6, 2015 at 5:31 AM, Anthony Green <
Post by Anthony Green
I'm using Ansible to provision a machine with Jenkins within a Docker
container
As part of the provisioning process I wait until Jenkins is running and
then download the CLI to continue the provisioning by executing CLI
commands.
The jar file is being downloaded to the host machine.
I was wondering if this was necessarily the best approach ?
Could the CLI jar be downloaded to my workstation instead and the commands
executed from there?
Could I use Groovy scripts to provision the machine ?
Other suggestions?
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/39af6126-0ba0-4c22-8573-5815f456208e%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/39af6126-0ba0-4c22-8573-5815f456208e%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 "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAAO6sMz%2BrqUEVkucSyC1AGE2xBok_W0SARfCnJnejw6yuztzgw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Adithya Khamithkar
2015-07-20 03:52:28 UTC
Permalink
You could have a look at this.
https://github.com/adithyakhamithkar/ansible/blob/master/roles/jenkins-configure/tasks/main.yml
Post by Anthony Green
I'm using Ansible to provision a machine with Jenkins within a Docker
container
As part of the provisioning process I wait until Jenkins is running and
then download the CLI to continue the provisioning by executing CLI
commands.
The jar file is being downloaded to the host machine.
I was wondering if this was necessarily the best approach ?
Could the CLI jar be downloaded to my workstation instead and the commands
executed from there?
Could I use Groovy scripts to provision the machine ?
Other suggestions?
--
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 ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ee4cb559-0878-49aa-98b9-00180b112ca4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...