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

普通用户使用ansible提示warning

[复制链接]

1

主题

0

回帖

12

积分

管理员

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

6 N$ ^/ X7 x- }ansible -R root -m shell -a "uptime" 192.168.13.5% O% P- N- W" {
# \0 K7 P5 d- \& p7 I5 b
[DEPRECATION WARNING]: The su command line option has been deprecated in favor of the "become" command line 4 [3 W' W0 G' _2 J/ r! `
arguments. This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting
7 X" _+ h) u- V6 u$ J$ mdeprecation_warnings=False in ansible.cfg.; T! s8 a6 g% S8 E! Z( j
% Z9 S! i$ g5 w2 D) b1 b8 f

, X9 \  v0 E( f$ d
$ m. s* G+ }5 e' o! v1 v2 J, T$ W

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-12-23 17:04:10 | 显示全部楼层
$ ansible -R root -m shell -a "uptime" 192.168.13.5   
- {5 Z. ?2 u% b8 A9 e 这是已经废弃的使用方法* Q  j3 U# ~. d0 G
. V- L+ f1 v4 `& x& W2 H
想不提示上面信息,请使用:0 i8 \8 l0 v7 _% R6 F
$ ansible -m shell -a "uptime" 192.168.13.5  * {( ^7 w$ @/ H2 n# z( {! a  b) }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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