我想通过执行以下操作来通知担任我角色的处理程序:
- name: Notify handler
notify: my_handler
when: this_thing_is_true|bool
Run Code Online (Sandbox Code Playgroud)
但 Ansible 只是抱怨:
错误!任务中未检测到模块/操作。
我尝试过各种楔子,例如:
- name: Notify handler
meta: noop
notify: my_handler
when: this_thing_is_true|bool
Run Code Online (Sandbox Code Playgroud)
但同样的抱怨是:
[警告]:有条件时不支持 noop 任务
有什么建议么?