【发布时间】:2015-11-25 17:20:13
【问题描述】:
我阅读了 document Ansible 的关于“fire and forget”任务的内容。
但是当试图写一个在我的 Windows 剧本上使用时
- name: install dotnet4
win_chocolatey:
name: dotnet4
state: present
async: 1000
poll: 0
register: dotnet_sleeper
我的控制机显示
TASK [windows.async.test : install dotnet4] *********************************
fatal: [192.168.0.165]: FAILED! => {"changed": false, "failed": true, "msg": "The async task did not return valid JSON: No JSON object could be decoded"}
这是否意味着 Windows 不支持异步模块?
【问题讨论】: