On Thu, 2 Mar 2017 01:27:54 -0800 (PST) ishan jain <[email protected]>
wrote:
ij> I would suggest that you add server2 as a slave in your Jenkins. Create a
ij> Jenkins job, configure it to run on this slave and specify the Ansible
ij> commands in the build step just like you execute any other shell command.
Also note that an Ansible playbook can be turned into a shell script easily.
```
#!/usr/bin/ansible-playbook
- hosts: localhost
tasks:
- debug: var=item
with_items: "{{ [ 1, 2, 3 ] }}"
```
Ted
--
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/87mvd3h5v8.fsf%40lifelogs.com.
For more options, visit https://groups.google.com/d/optout.