xq8995209 发表于 2018-7-29 14:33:41

ansible-Linux

  1、# ansible-doc -l
  : 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>  : 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、# ansible -i /root/iplist_all ip_all -m shell -a 'cat /etc/redhat-release'
  The authenticity of host ':22051 (: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 ':22051 (: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 ':22051 (:22)' can't be established.
  解决方法:
  sed -i 's/^#host_key_checking = False/host_key_checking = False/' /etc/ansible/ansible.cfg
页: [1]
查看完整版本: ansible-Linux