易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3576|回复: 1
收起左侧

普通用户使用ansible提示warning

[复制链接]
发表于 2017-12-23 17:03:46 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
; `' L9 I/ z" B8 O8 |( l  R; w
ansible -R root -m shell -a "uptime" 192.168.13.5
* c2 W7 G7 `0 C% C7 P* i/ ~% g% l2 E2 i: ]7 E5 U" M* q1 I7 b8 [
[DEPRECATION WARNING]: The su command line option has been deprecated in favor of the "become" command line
9 n, H$ @+ K4 ~0 n) n# a' ?arguments. This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting
/ o0 I& ~4 W7 ]8 h* ~5 ^8 {$ Ndeprecation_warnings=False in ansible.cfg.
' ~& m5 y6 M( v
* o, e7 x8 d7 U7 [+ K. z4 }$ i5 ?2 ^- f1 l" T- ]- A
$ h5 ~4 L: }- b- m, N+ N
 楼主| 发表于 2017-12-23 17:04:10 | 显示全部楼层
$ ansible -R root -m shell -a "uptime" 192.168.13.5   
) L6 Y  ?) L: R1 V1 j& }) ~4 B2 x 这是已经废弃的使用方法
- ^# J7 s! r3 O3 t# @% y& G9 h/ m# x' j( R2 I3 u
想不提示上面信息,请使用:' \0 z0 f6 V9 u2 t; W% z- \
$ ansible -m shell -a "uptime" 192.168.13.5  ( E  F$ {7 X) k: N4 z; M
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-9 01:06 , Processed in 0.042913 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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