[ansible-project] Re: How to copy certain files in different servers (different location )to another remote server using ansible.

2018-11-28 Thread rpachi via Ansible Project
I think you can use fetch option which is available in Ansible. On Wednesday, November 28, 2018 at 2:05:37 PM UTC+5:30, vowner wrote: > > hello Experts, > > How to copy certain files in different servers (different location )to > another remote server using ansible. > > for example i have 5 appli

[ansible-project] Re: How to copy certain files in different servers (different location )to another remote server using ansible.

2018-11-28 Thread Sanjay Thakur
Since, you are using *delegate_to: *so, you should check SSH connection or DNS resolution from IHS server to all 5 different application servers to make sure you can connect to all app servers. On Wednesday, November 28, 2018 at 2:05:37 PM UTC+5:30, vowner wrote: > > hello Experts, > > How to

Re: [ansible-project] Re: How to copy certain files in different servers (different location )to another remote server using ansible.

2018-11-28 Thread Indian Velumani
Hi, Edit your hosts file like this /etc/Ansible/hosts [servers] A1 A2 A3 A4 A5 then: --- - name: copy the certificates to the IHS server hosts: servers tasks: - name: Transfer file from JTS to IHS synchronize: src: /opt/IBM/myapp/security/file2.crt dest: /opt/secur

Re: [ansible-project] Re: How to copy certain files in different servers (different location )to another remote server using ansible.

2018-11-28 Thread vowner
Hello Velumani, I tried by your suggestion, but getting below error. but ssh is enabled to all target servers from controller machine but here its getting failed.. not sure the exact reason. [root@vwjts good]# ansible-playbook copycerts3.yml PLAY [copy the certificates to the IHS server] *