天天看点

ansible

1、[root@node1~]# ansible-doc -l

[deprecation warning]: docker is kept for backwards compatibility but usage is discouraged. the module documentation details page may explain more about this rationale..

this feature will be removed in

a future release. deprecation warnings can be disabled by setting deprecation_warnings=false in ansible.cfg.

[error]: unable to parse /usr/lib/python2.6/site-packages/ansible/modules/extras/cloud/misc/rhevm.py

error! module rhevm has a documentation error formatting or is missing documentation

解决方法:

sed -i 's/^#deprecation_warnings = true/deprecation_warnings = false/' /etc/ansible/ansible.cfg

rm -f /usr/lib/python2.6/site-packages/ansible/modules/extras/cloud/misc/rhevm.py

2、[root@node1 ~]# ansible -i /root/iplist_all ip_all -m shell -a 'cat /etc/redhat-release'

the authenticity of host '[192.168.99.43]:22051 ([192.168.99.43]:22)' can't be established.

rsa key fingerprint is 5e:9d:5c:4c:e8:cd:6e:78:70:a2:04:1c:5f:6f:3a:1e.

are you sure you want to continue connecting (yes/no)? the authenticity of host '[192.168.99.248]:22051 ([192.168.99.248]:22)' can't be established.

rsa key fingerprint is 64:d9:ef:67:6a:d5:37:ff:70:2f:06:d2:35:d1:6b:a2.

are you sure you want to continue connecting (yes/no)? the authenticity of host '[192.168.99.247]:22051 ([192.168.99.247]:22)' can't be established.

sed -i 's/^#host_key_checking = false/host_key_checking = false/' /etc/ansible/ansible.cfg

继续阅读