LoginSignup
25
27

More than 5 years have passed since last update.

AnsibleでHost Key Checkingを無効にする

Last updated at Posted at 2014-10-03

はじめに

AnsibleでHost Key Checkingを無効にする方法を記述します。

環境

  • CentOS 6.5
  • Ansible 1.7

Host Key Checkingを無効にする方法

Ansibleのインストールや ad-hoc command の操作方法については、Ansibleで複数のサーバを操作するをご参照ください。

Ansibleの設定ファイルに記述する場合

$ cp /etc/ansible/ansible.cfg ~/.ansible.cfg
~/.ansible.cfg
[defaults]
host_key_checking = False

環境変数で設定する場合

$ export ANSIBLE_HOST_KEY_CHECKING=False

opensshの設定を変更する場合

~/.ssh/config
StrictHostKeyChecking no

※ ansibleに限定されず、host key checkingの機能が無効になります。

参考

25
27
2

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
25
27