问题描述
真正简短的问题。我只是想知道为什么当我们使用处理程序时,“侦听”部分不带变量?
- name: notify components
command: echo "this task will notify all the components"
notify: "hello world"
- debug:
msg: "Hello world !!"
listen: "hello world"
- set_fact:
myvar: "hello world"
listen: "hello world"
- debug:
msg: "Hello world !! with var"
listen: "{{myvar}}"
为什么此部分不起作用?听不带变量?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)