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

普通用户使用ansible提示warning

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-12-23 17:03:46 | 显示全部楼层 |阅读模式

. d1 Z* |# I+ |* Z( S8 xansible -R root -m shell -a "uptime" 192.168.13.5
4 O9 o4 O' L! F; S# [7 z$ L
8 e% j, x5 h! I[DEPRECATION WARNING]: The su command line option has been deprecated in favor of the "become" command line
6 N: l+ u/ j. I3 qarguments. This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting
; b; l/ `3 e2 U& wdeprecation_warnings=False in ansible.cfg.
' q# b/ o9 E9 E. R( i) s* f$ l) X4 B
/ E$ a2 i' {4 f8 |- w

: o7 _( c/ s, R# G

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-12-23 17:04:10 | 显示全部楼层
$ ansible -R root -m shell -a "uptime" 192.168.13.5   + f  B- `2 t* G0 X1 O# ^8 @" P
这是已经废弃的使用方法8 ^' V+ }$ A+ _2 t9 _; L4 _7 L

. \2 y3 o# d* w, D& U3 h# a想不提示上面信息,请使用:
  y3 ^) b0 v. r0 i $ ansible -m shell -a "uptime" 192.168.13.5  5 z( T. O! k: h6 N9 b6 M5 U* Z
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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