运行ansible-playbook时遇到此错误。但是当我重试时,错误就消失了 它是随机发生的。
sudo ansible-playbook /home/ubuntu/ansible_deployment/copy_nginx_conf.yml --extra-vars branch=submissions --private-key /home/ubuntu/ansible_deployment/key.pem
PLAY [stg-app] ****************************************************************
GATHERING FACTS ***************************************************************
fatal: [52.10.142.55] => SSH Error: mux_client_hello_exchange: write packet: Broken pipe
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
TASK: [file path=/opt/nginx/conf/sites-enabled/ state=directory mode=0755] ****
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/var/lib/jenkins/copy_nginx_conf.retry
52.10.142.55 : ok=0 changed=0 unreachable=1 failed=0