在主机清单页面中,选择一个主机清单,进入后,选择hosts里的主机
![](http://upload-images.jianshu.io/upload_images/3629406-8f0c95eab39a810a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Paste_Image.png
点击 RUN COMMANDS
MODULE 选择 command
ARGUMENTS 填写 ifconfig eth0
MACHINE CREDENTIAL 选择 ssh登陆账号
Verbosity 选择 3 (Debug)
![](http://upload-images.jianshu.io/upload_images/3629406-3fca45da07b3990f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
Paste_Image.png
点击 Launch,查看输出
![](http://upload-images.jianshu.io/upload_images/3629406-881302e4e7461f93.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
转自
Ansible Tower系列 四(使用tower执行一个命令) - 简书
http://www.jianshu.com/p/8a7727ec9238