找回密码
 注册
查看: 3581|回复: 1

普通用户使用ansible提示warning

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-12-23 17:03:46 | 显示全部楼层 |阅读模式
5 P% S9 E* Z3 R; M+ K& @3 s
ansible -R root -m shell -a "uptime" 192.168.13.5! u4 e  D& Y. A# h( u; A% w% m. h8 ~

" U  N- R! p! G! \  C8 r[DEPRECATION WARNING]: The su command line option has been deprecated in favor of the "become" command line
; |  k9 n2 H% E5 f) harguments. This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting " ]7 X" g. i1 j& }; a- ^# j
deprecation_warnings=False in ansible.cfg.
! r6 E$ C. E* U
& N/ i& {  v5 s* j/ {  f( C: z7 X; Y3 [6 \. i
& y/ _4 n7 O/ \$ D7 E! t: L8 T

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-12-23 17:04:10 | 显示全部楼层
$ ansible -R root -m shell -a "uptime" 192.168.13.5   
5 N. H- L1 A$ ^1 X$ s/ I& f 这是已经废弃的使用方法9 [5 E$ d  q% X! r* F
7 L- s/ v* ]1 F5 a: U
想不提示上面信息,请使用:
* @9 F) D, \$ { $ ansible -m shell -a "uptime" 192.168.13.5  ( }8 w5 Q- ~/ R$ q/ }7 M# n9 ?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:24 , Processed in 0.017348 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表