1. 程式人生 > >ansible 2.7.1 常見錯誤總結

ansible 2.7.1 常見錯誤總結

1.RequestsDependencyWarning

(refer to http://blog.51cto.com/mjunetwslinux/2177727?source=dra

python庫中urllib3 (1.21.1) or chardet (2.2.1) 的版本不相容

解決方法:

pip uninstall urllib3

pip uninstall  chardet

pip install requests

 

2.在 /etc/ansible/hosts 已經配置了IP地址、使用者名稱和密碼登陸失敗

臨時解決方法:

禁用公鑰認證  

export ANSIBLE_HOST_KEY_CHECKING=False

手動登陸目標機器一次

ssh [email protected]

永久解決方法:

vim /etc/ansible/ansible.cfg

#host_key_checking= False取消註釋

 

3.其他待續