【发布时间】:2017-08-10 04:25:02
【问题描述】:
我想在完成运行 playbook 后在 Ansible 中显示一条横幅消息,为后续步骤提供说明。这就是我所做的:
- name: display post install message
debug:
msg: |
Things left to do:
- enable dash to dock gnome plugin in gnome tweal tool
- install SpaceVim plugins: vim "+call dein#install()" +qa
- git clone the dotfiles repo
但这会产生如下丑陋的输出:
TASK [display post install message] ********************************************
ok: [localhost] => {
"msg": "Things left to do:\n- enable dash to dock gnome plugin in gnome tweal tool\n- install SpaceVim plugins: vim \"+call dein#install()\" +qa\n- git clone the dotfiles repo\n"
}
PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0
有没有更好的方法来显示运行后消息?
【问题讨论】:
标签: ansible