|
|
[root@controller ~]# ansible -i inventory -m shell -a 'ls -al /' all, Q3 A& L; M( h: D+ d/ j
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12.
- E+ H. D' Y. f' R2 o* y7 L) DCurrent version: 3.6.8 (default, Mar 25 2022, 11:15:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-10)]. This feature
, l& K/ x5 o- u9 q$ Qwill be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting
$ k0 m; y7 ]" y+ _deprecation_warnings=False in ansible.cfg.+ F) W& e J- f! }( v
/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 (40.0) will be the last to support Python 3.6.7 f, ?$ V' F& r4 J# I5 \
from cryptography.exceptions import InvalidSignature. Z# c6 m9 W: A' d7 ?
[WARNING]: Unhandled error in Python interpreter discovery for host 192.168.13.165: to use the 'ssh' connection* `6 D# B3 g4 i
type with passwords, you must install the sshpass program
- o/ R) ]4 ~- _; X& ?192.168.13.165 | FAILED | rc=-1 >>5 u4 D# i$ y( d8 [) ^8 [
to use the 'ssh' connection type with passwords, you must install the sshpass program
# \, _* \( n5 |( s) ^/ w& D" R$ `& q* G: R[root@controller ~]# dnf install -y sshpass
; G6 O. ?2 h# ]Last metadata expiration check: 0:36:36 ago on Sat 11 Feb 2023 11:01:32 AM CST.8 k8 T" d- d" I$ [( |
Dependencies resolved.; r7 e. \1 T. s: Z \0 ~* Y7 \
==================================================================================================================
6 a. t- S# @3 V5 f. \% S Package Architecture Version Repository Size
, L2 o+ |" f0 _! R==================================================================================================================; Y- n! @) V) [; k( I+ X! f+ H
Installing:
7 o! B4 P, d7 {3 G1 Y8 ~) W sshpass x86_64 1.09-4.el8 appstream 30 k
# S- r& j6 b1 [
: S; A$ V0 C( }0 ^/ g2 B+ j3 w' N4 MTransaction Summary: B2 z2 B7 Y P" k
==================================================================================================================
: R* d3 t" N% x) sInstall 1 Package
# L- K% ?* ]2 Q3 k) @. o
# }5 e5 i0 X8 ^. r! ^* BTotal download size: 30 k4 o2 H* E2 R! l' T) a$ b
Installed size: 43 k$ @& M+ ?5 Y' o/ k$ m& m( S
Downloading Packages:/ D: e9 S9 a' P$ I7 K' o) _' Q
sshpass-1.09-4.el8.x86_64.rpm 24 kB/s | 30 kB 00:01 8 Y: n: A: j; y+ |
------------------------------------------------------------------------------------------------------------------* w: q" I, U8 N P6 y9 e
Total 12 kB/s | 30 kB 00:02 & P6 i _% v) x( U7 s+ A8 d0 b3 p: ]3 B
Running transaction check
( ?/ P. \/ z* L7 Q& m$ |1 o/ h$ nTransaction check succeeded.
& t8 A9 c( c0 ` V+ ]0 ZRunning transaction test
- R @! r% Q! U, j- u" @Transaction test succeeded.1 i) }8 j- [$ s6 }) t
Running transaction
/ P+ m. x5 U: Z1 i Preparing : 1/1
. p0 U t. M: p" ? Installing : sshpass-1.09-4.el8.x86_64 1/1
: I* b1 k5 J! Z) l' ~ Running scriptlet: sshpass-1.09-4.el8.x86_64 1/1 ' h9 f* ^4 Z/ w
Verifying : sshpass-1.09-4.el8.x86_64 1/1 ! \0 `& w. [% S* |. [5 y
4 }* |( r" Z; |3 Z
Installed:! y+ y! b3 X- @; p
sshpass-1.09-4.el8.x86_64 - s5 r! H7 l3 k/ h7 O
# e4 }7 p% ]( ?% [! i
Complete!
$ O( f4 l% [& x5 v; ^ o8 _6 v[root@controller ~]# ansible -i inventory -m shell -a 'ls -al /' all
- D: W2 T+ q0 r6 N1 f3 Y5 j[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. & w0 E- m( p( j0 W
Current version: 3.6.8 (default, Mar 25 2022, 11:15:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-10)]. This feature
8 d# w% u: M v% Kwill be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting
6 x7 P" k+ b8 y, fdeprecation_warnings=False in ansible.cfg.
- q: R2 f9 V% H! n: b( D3 N) I4 ~1 h/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 (40.0) will be the last to support Python 3.6.
' h0 X0 I# Z: B- w$ S9 H from cryptography.exceptions import InvalidSignature$ W* P4 p$ ], e0 M/ ]2 q# k+ q2 d7 G& j
192.168.13.165 | CHANGED | rc=0 >>
0 G/ C+ X1 W& Q0 C$ Ftotal 20
/ w1 a z1 R; }1 A& odr-xr-xr-x. 17 root root 244 Feb 10 21:00 .
0 l* Z6 D" E' ]dr-xr-xr-x. 17 root root 244 Feb 10 21:00 ..
5 ?- ]! V g$ H6 H2 x, S3 {! d-rw-r--r-- 1 root root 0 Feb 10 21:00 .autorelabel' f+ j* U/ t& q/ K" r( ~9 e% N
lrwxrwxrwx. 1 root root 7 Jun 22 2021 bin -> usr/bin
0 [. S( [; E( k3 ldr-xr-xr-x. 5 root root 4096 Apr 18 2022 boot- I+ T& I5 `+ \
drwxr-xr-x 20 root root 3180 Feb 11 09:29 dev9 _' B. o! L; V% ?+ L4 G
drwxr-xr-x. 85 root root 8192 Feb 11 11:38 etc
/ F) E6 j6 {) Y; hdrwxr-xr-x. 2 root root 6 Jun 22 2021 home
0 o6 l8 W7 G {0 dlrwxrwxrwx. 1 root root 7 Jun 22 2021 lib -> usr/lib
, ?3 p' t+ f5 m+ F, X0 o" Klrwxrwxrwx. 1 root root 9 Jun 22 2021 lib64 -> usr/lib64+ ^/ K9 `) }2 b6 s
drwxr-xr-x. 2 root root 6 Jun 22 2021 media
, s8 ^$ z& j: }4 z% ?drwxr-xr-x. 3 root root 18 Apr 18 2022 mnt* o7 ?0 Q7 \* G/ T8 n& _
drwxr-xr-x. 2 root root 6 Jun 22 2021 opt3 ^5 ?' f0 r; u9 I6 S
dr-xr-xr-x 171 root root 0 Feb 11 09:29 proc0 Y9 P1 ^5 b/ x9 f2 k# m
dr-xr-x---. 5 root root 210 Feb 11 11:35 root
. ]6 g- x! b& A4 Rdrwxr-xr-x 27 root root 780 Feb 11 11:10 run" v0 N4 d( ]9 u" ^
lrwxrwxrwx. 1 root root 8 Jun 22 2021 sbin -> usr/sbin
' u8 [/ `2 Y& A; w1 a: Q4 [$ Fdrwxr-xr-x. 2 root root 6 Jun 22 2021 srv" ^1 \' j7 B9 p$ E
dr-xr-xr-x 13 root root 0 Feb 11 09:29 sys
5 V$ g* G0 V$ Wdrwxrwxrwt. 15 root root 4096 Feb 11 11:38 tmp+ |/ [2 ^: @9 G6 |3 Z
drwxr-xr-x. 12 root root 144 Apr 18 2022 usr
0 ]6 g" M, i+ o: udrwxr-xr-x. 20 root root 278 May 19 2022 var$ U3 r4 [' e. X/ i7 g5 M3 m
6 x& _4 U. u" l" }; ]
0 H# e [6 N A |
|