pip install ansible
-- ์๋ฌ --
UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Host key verification failed.", "unreachable": true}
ansible --version
์ ๋ ฅ ํ config file ์ค์ ์ด none์ด๋ผ๋ฉด /etc/ansible ํด๋ ์์ฑ ์ดํ ํด๋ ์์ ansible.cfg ํ์ผ์ ๋ง๋ค์ด ์ค๋ค.
[defaults]
inventory = /etc/ansible/hosts
host_key_checking = False
ํ์ ์ด ๋ฌธ์ฅ์ ๋ถ์ฌ์ฃผ๊ณ hostsํ์ผ์ ํด๋น ๊ฒฝ๋ก์ ๋ง๋ค์ด์ค๋ค.
โ๏ธ ์์ง์ ansible์ ๋ํด ๋ชจ๋ฅด๋๊ฒ ๋ง์ผ๋ ๊ณต๋ถํ๋ฉด์ config ํ์ผ ๋ฐ hosts ํ์ผ์ ๋ํด ๊ณต๋ถํด๋ณด์.