前提・実現したいこと
仮想マシンのCentOS7から仮想マシンのwindowsServer2016に対しての疎通確認を行いたい。
ansible version:2.9.13
発生している問題・エラーメッセージ
xxx.xxx.xxx.xxx | UNREACHABLE! => { "changed": false, "msg":"Failed to connect to the host via ssh: ssh: connect to host xxx.xxx.xxx.xxx port 22:Connection timed out", "unreachable": true }
該当のソースコード
ansible win -i hosts -m win_ping -vvv
試したこと
両方からpingを飛ばした。
ansible/hostsがあるディレクトリで実行した。
補足情報(FW/ツールのバージョンなど)
下記のページを参考に行っている
https://qiita.com/Kento75/items/a5e89c5034200310f98f
https://dev.classmethod.jp/articles/execute-powershell-script-to-windows-server-using-ansible/
そこの「疎通確認」で上記のエラーが発生した。
hostsの中身
[win]
xxx.xxx.xxx.xxx

回答4件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
また依頼した内容が修正された場合は、修正依頼を取り消すようにしましょう。
2020/10/08 05:56 編集
2020/10/08 05:50
2020/10/08 05:52 編集
2020/10/08 05:59
2020/10/08 06:04
2020/10/08 06:24
2020/10/08 06:36