首页 > 其他 > 详细

task执行结果查看

时间:2017-01-24 13:36:32      阅读:276      评论:0      收藏:0      [点我收藏+]

使用debug输出task执行的register:

- name: check extract session
#  script: /app/ansiblecfg/XXX/roles/test/tasks/psgrep.sh > /home/shdxspark/psgrep.log
  script: /app/ansiblecfg/XXX/roles/test/tasks/psgrep.sh
  register: psgrep_output

#通过debug方式打印psgrep.sh脚本的返回结果psgrep_output
- debug: var=psgrep_output.stdout_lines

结果输出:

技术分享

 

task执行结果查看

原文:http://www.cnblogs.com/andriy-h/p/6346903.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!