问题
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