LoginSignup
2
4

More than 5 years have passed since last update.

ansibleでパスワードによるSSH接続

Posted at

概要

手っ取り早くansibleを使いたいとき、ターゲットのrootのログインパスワードを入力させて接続する方法です。セキュリティ的にあまりよろしくないので、外部に繋がっていない閉じた試験環境とか、そういったところでの利用を想定しています。

手順

/etc/ansible/ansible.cfgに、以下を設定する。

ansible.cfg
[default]
ask_pass = True
host_key_checking = False
remote_user = root

以上。

2
4
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
2
4