- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
172.24.110.164 | FAILED! => {% t0 {7 y2 E: w3 [, p8 i, ~) J+ i8 _
"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."
& q4 h1 ^+ _$ P3 O9 t; }# Y0 p8 K} b' Y0 k7 S$ f7 k9 L
1 d: _! R0 B7 t9 k' j
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg1 F+ B7 s2 J- S6 [% N* u
[root@jumpserver3 ~]# mkdir /etc/ansible/
) E2 s( l0 m! P8 J( z0 K! r0 E2 e& C[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg7 v3 I1 J7 O9 S9 ]3 J5 L* X
[defaults]8 [2 m1 |& F! {& e9 o$ y
host_key_checking=False4 r& K- G! ?; b5 D8 m( R$ _
pipelining=True
; l4 ?3 O: a2 D8 R4 |1 X) F; V3 Bforks=100
/ }, o( u/ C& Z* ?" f$ [. w3 R0 ~9 Q: E3 }7 [
, {% V% t9 B# z' `
0 i n+ a3 d6 A0 H8 `2 n[root@jumpserver3 ~]# ansible -i inventory -m ping all
+ s1 i# T1 j: R& H6 a0 _. G/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.
3 v, U+ j& Z0 Q( H$ q from cryptography.exceptions import InvalidSignature8 U+ T' | M( G7 R
172.24.110.164 | SUCCESS => {
+ S8 a+ v% m" b8 K "ansible_facts": {
' W: I# h: G; g3 U8 ? "discovered_interpreter_python": "/usr/bin/python"
/ d3 i1 u1 }2 K8 @, [: @( z0 { },
& S" u8 T9 B) x# t "changed": false,7 Y! q: U2 B3 N5 b7 [
"ping": "pong"
" _7 n8 i4 S/ J2 i}
. I4 \5 R; V0 N$ `4 I' ^) f# ?% n, ~9 D7 |2 _; h+ K& C" ?, R
|
|