|
|
172.24.110.164 | FAILED! => {4 p" \7 Z( K3 P. `8 y) E) {& V
"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."
, @* w& E7 T! A: _}
; s4 ~% E" p5 a8 b1 ^
" ?& I9 A0 P3 A, N/ M[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg2 z" ?6 z1 T7 h S! S% r7 C9 ^
[root@jumpserver3 ~]# mkdir /etc/ansible/
2 h5 [$ H ?- C; @- }[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg' o* F& |1 h; U% q; s u
[defaults]
( g6 Z) Z S* S5 C+ Y6 |host_key_checking=False
& a9 \ k* t: x5 gpipelining=True
$ w b3 R; R, \' J. Z0 H) Lforks=100
) ]0 b& A4 I; j- j6 c( \0 T& o; y1 o: ], `4 i; p6 Y5 m
' P; w" A( I5 r
2 S1 C# S" K6 n, |. V1 U5 c- e[root@jumpserver3 ~]# ansible -i inventory -m ping all
! l, o8 }9 E. e, q/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.
/ n( }. ^/ @! ]0 e8 o( i from cryptography.exceptions import InvalidSignature; [' o$ x8 g8 U
172.24.110.164 | SUCCESS => {! ^0 _# E0 ?6 D
"ansible_facts": {
; D- g- U I) p; D W. Z# w "discovered_interpreter_python": "/usr/bin/python"5 {" u+ i7 s- w& t9 `% Q
},
6 w' ?( K9 j* ~2 R; E* v: t$ J3 i "changed": false,
8 X. H, R) U( s8 m' H; {: k "ping": "pong"/ I. a- d- _: f$ l8 ~) Y% S, p: P
}
$ a6 H0 `3 I4 ]/ r% K2 [1 J* ~7 \. J# n" Z. \) F
|
|