鍵とユーザ名を明示的に指定して ping する
$ ansible 192.168.x.x -i hosts --private-key=~/path/to/private-key -u user -m ping
実行結果が以下のように success になればOK
192.168.33.10 | success >> {
"changed": false,
"ping": "pong"
}
Go to list of users who liked
More than 5 years have passed since last update.
鍵とユーザ名を明示的に指定して ping する
$ ansible 192.168.x.x -i hosts --private-key=~/path/to/private-key -u user -m ping
実行結果が以下のように success になればOK
192.168.33.10 | success >> {
"changed": false,
"ping": "pong"
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked