5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ansible:鍵とユーザ名を明示的に指定してpingする

Posted at

鍵とユーザ名を明示的に指定して 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"
}
5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?