Ansible SSH Error: data could not be sent to the remote hostの解決方法
環境
Ansible
エラーメッセージ
fatal: [host]: UNREACHABLE! => {“changed": false, “msg": “ERROR! SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", “unreachable": true}
解決方法
環境変数ANSIBLE_SCP_IF_SSH=yを設定する
ANSIBLE_SCP_IF_SSH=y ansible-playbook -i staging site.yml -u root -k