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

普通用户使用ansible提示warning

[复制链接]

1

主题

0

回帖

12

积分

管理员

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

  g* U! H9 J( m# Ransible -R root -m shell -a "uptime" 192.168.13.54 ?2 I4 k: V- f3 [. ^9 Q- e
, ]/ D1 |- j9 k0 h
[DEPRECATION WARNING]: The su command line option has been deprecated in favor of the "become" command line
; \, [( u0 r: c7 ?, larguments. This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting : Y% U) M  Z# @) C
deprecation_warnings=False in ansible.cfg.2 l( [! ?1 {( @# O4 {$ J1 T

# f6 B, |: e/ M4 f' q' `% z8 k4 K/ Z* Y$ M: k. ^
# y' K- S& L' ^

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-12-23 17:04:10 | 显示全部楼层
$ ansible -R root -m shell -a "uptime" 192.168.13.5   
7 D" o5 c2 ]: E" _$ [ 这是已经废弃的使用方法( a! d3 h, o4 r

" V: b# E! a9 m- s想不提示上面信息,请使用:3 @# {; w( D; S9 x6 |
$ ansible -m shell -a "uptime" 192.168.13.5  ( o$ t) n+ z' P- G) q# D7 k
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:05 , Processed in 0.023834 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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