- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
172.24.110.164 | FAILED! => {+ p; K" b; n; a
"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."- }, y) V' W% i& p3 U# X) |) U0 ?
}+ u+ t' }! n0 C1 E
, J6 R6 i+ B( P$ Y$ _8 z
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
1 g g# H% ?1 \# s5 E[root@jumpserver3 ~]# mkdir /etc/ansible/5 Y# J& e: k+ X G
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg$ f6 [, [6 b4 O5 X% i* @# D
[defaults]9 Z/ N- P! g9 y1 \1 z, b: h
host_key_checking=False; b9 a U/ G4 M
pipelining=True5 a! `- r3 n2 {1 g
forks=100' U. }% z& j9 B. U8 j
8 C# f0 i( O6 u' J: \: e: a) e: T
3 d8 |2 z8 `! E
- D2 \' R- c6 l: A[root@jumpserver3 ~]# ansible -i inventory -m ping all
4 u/ w. U# q2 i5 R- R/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.
1 Q1 `& N6 a2 Q! [ from cryptography.exceptions import InvalidSignature
5 L8 J9 _5 n* H# F172.24.110.164 | SUCCESS => {
5 `' Z8 z' v% H3 j7 k! ^$ J; K "ansible_facts": {
( Z; M2 L/ n3 ^' D3 S. U" _ "discovered_interpreter_python": "/usr/bin/python"
& D( N1 n; H% s( T },
* E7 W- f! t5 t "changed": false,2 }& c6 y9 r4 c3 e& o% d" |4 K
"ping": "pong"5 [+ P! _0 Y& k# i" B
}7 q/ r6 U- l+ }. _
0 {: O$ q6 O& p |
|