|
|
172.24.110.164 | FAILED! => {. }' f$ c( i5 V5 F7 N9 e
"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."
% e4 L& Y# B+ K; Z c$ v8 D. a1 ?}
5 y2 M. }" P0 M# V% }4 K4 b7 P+ i' B# X5 O, X7 J U5 u. y: m$ N$ g
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
' \) p) E5 O3 T* M: h% V0 w8 a[root@jumpserver3 ~]# mkdir /etc/ansible/8 t6 f T1 M m/ U
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg/ s: l7 r# T' p: V
[defaults]
3 h, F$ F o3 E6 C3 ?* f& ehost_key_checking=False* n. E- }9 J$ \: o' K7 t
pipelining=True# a' T' i9 O5 Y3 F+ }' x5 O
forks=100
/ j7 A* d4 B/ n1 C; E9 K o9 ^- M3 @4 W3 d# S9 n* d
. c- l* z! |6 M. r0 b3 }5 S8 @& K% g
. }5 x& `$ a1 X) l[root@jumpserver3 ~]# ansible -i inventory -m ping all% D: @' U+ L% S9 f
/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.
& w) I7 I: \! P5 b* v% G from cryptography.exceptions import InvalidSignature
$ V% p/ A6 P+ G& `$ \172.24.110.164 | SUCCESS => {
6 {( P: T' ]" W& `" N8 |+ X "ansible_facts": {
* |+ ]: F) k0 { "discovered_interpreter_python": "/usr/bin/python"
& D0 J3 _" C4 O6 ~ },
& ^( K$ e0 N/ M) V( L$ a# I "changed": false,( ]6 f6 i9 {, @) C8 I
"ping": "pong"
+ A- K4 T0 ?$ f2 x2 T$ D" O}
% {0 F9 v% D# j5 V2 z, S( B( Z! x) m
|
|