Ansible Playbook throwing this error - failed to transfer file to /tmp

删除回忆录丶 提交于 2021-01-29 19:00:55

问题


I am getting bugged by this unknown error while running my playbook. My playbook does multiple things using roles like downloading the release war files from nexus (my application has 10 war files), copying it to remote host, creating webapp folder, exploding the war etc. It is getting failed by the below error during Unarchive module -

Playbook Command - ./ansible-playbook my-main.yml --tags=repodownload,copyrepo,explodewar,starttomcat -e my_release_version=1.0.0-01 -e target_env=preprod

Error -

fatal: [server1] => failed to transfer file to /tmp/ansible-tmp-1586938207.05-181602913862471/file: Connecting to server1... Couldn't read packet: Connection reset by peer

FATAL: all hosts have already failed -- aborting

I have tried googling it at several places on githunb but nothing worked. Let me know if someone can help.

NOTE : I am using sudo to tomcat to my remote server.

来源:https://stackoverflow.com/questions/61224276/ansible-playbook-throwing-this-error-failed-to-transfer-file-to-tmp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!