- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
172.24.110.164 | FAILED! => {& j: T9 J, `* P0 c# M) K
"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host."/ T3 ~5 \7 u$ b1 f' u$ H6 H }
}
0 b* i! J- l" L+ {! T' m, v( Q5 u' A- j, o, ^; V9 b+ x
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
+ v4 Q# q" o& }- E[root@jumpserver3 ~]# mkdir /etc/ansible/
5 z, S5 R% @- B! z# a& G+ y9 [1 z) X[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
. V. {! P3 ~2 ]. {; G[defaults]" ?" ^% X+ o' O
host_key_checking=False
' I! o- Z# E, g1 }1 F+ e' `pipelining=True* @" {/ D; \9 B6 t, h F
forks=1000 K# W! E, n( t( j2 P
& X. {' ?1 C& h4 n
% i, @ n! ^) _" K" C7 q: Z- Q- ?/ H8 F( H" ~- k7 i- [
[root@jumpserver3 ~]# ansible -i inventory -m ping all
$ R* P3 Q/ d3 p* S2 b! _) x* \/usr/local/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.& Z2 d+ x8 ]1 K# J _1 ^
from cryptography.exceptions import InvalidSignature8 b7 H( Y2 L9 U' T
172.24.110.164 | SUCCESS => {
0 i% n2 q9 v' L7 C& j* S "ansible_facts": {
' k) _2 {" H# j! ?3 {" ?: F" ?& Y "discovered_interpreter_python": "/usr/bin/python"* ?0 ~0 ]( e9 s' v# q2 h" f
},# B/ Y) b( N6 i
"changed": false,
, P9 U: T* N5 I6 e: M* s" R "ping": "pong"7 w- K) i% N- `; t! j1 o8 g' \
}
& @3 j0 N! r8 N8 z+ f7 ~% N9 j) ^7 z( o3 H5 Z% N* |
|
|