On Thu, 2 Mar 2017 01:27:54 -0800 (PST) ishan jain <
ishan...@gmail.com> 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