Which module are you using in your Ansible playbook task? https://docs.ansible.com/ansible/latest/modules/copy_module.html Is used for copying from local to remote.
On Tue, Dec 24, 2019 at 21:15 Richard Bywater <[email protected]> wrote: > Looks to me like the Ansible playbook is running on the remote server but > there's nothing actually copying the files to the remote server so the > playbook doesn't have anything to copy. > > However I've only have taken a quick peek so apologies if I've misread the > situation. > > Richard. > > On Wed, 25 Dec 2019, 4:14 AM Prabhu Varadhachari, < > [email protected]> wrote: > >> >> Hello , >>> >>> >> I want transfer the file from Jenkins work space to remote server. Job is >> done but files are not transferred. Can you please help me to fix this >> issue. >> >> SNAPSHOT/server-1.0-SNAPSHOT.jar >> [JENKINS] Archiving /var/lib/jenkins/workspace/Devops-project-2/pom.xml to >> com.example.maven-project/maven-project/1.0-SNAPSHOT/maven-project-1.0-SNAPSHOT.pom >> channel stopped >> SSH: Connecting from host [192.168.56.150] >> SSH: Connecting with configuration [ansible-server] ... >> >> SSH: Disconnecting configuration [ansible-server] ... >> SSH: Transferred 0 file(s) >> SSH: Connecting from host [192.168.56.150] >> SSH: Connecting with configuration [ansible-server] ... >> SSH: EXEC: STDOUT/STDERR from command [ansible-playbook >> /opt/playbooks/copywarfile.yml] ... >> >> PLAY [all] >> ********************************************************************* >> >> TASK [Gathering Facts] >> ********************************************************* >> >> ok: [192.168.56.160] >> >> TASK [copy jar/war onto tomcat servers] >> **************************************** >> >> ok: [192.168.56.160] >> >> PLAY RECAP >> ********************************************************************* >> 192.168.56.160 : ok=2 changed=0 unreachable=0 failed=0 >> skipped=0 rescued=0 ignored=0 >> >> SSH: EXEC: completed after 8,881 ms >> SSH: Disconnecting configuration [ansible-server] ... >> SSH: Transferred 0 file(s) >> Finished: SUCCESS >> >> >> Thanks >> >> Prabhu V >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/17d9e826-dee5-4bd5-959f-ce7eef81dfd1%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwe3A5eoY0CXhddr_7%2Bp1A0werQ0XW%2BC%3D1iLfLowhVo8xA%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwe3A5eoY0CXhddr_7%2Bp1A0werQ0XW%2BC%3D1iLfLowhVo8xA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- William Hetherington w - opschops.ca t - @wmwh -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALJU9pdi3hT3aktn1yAY87NFjDkhgW4Tm5aH-cbmC0-24xqAcQ%40mail.gmail.com.
