0
我正在使用win_file Ansible模块在Windows 2012 R2服务器上创建目录和文件。我想注册win_file任务的结果,但是我无法使其工作。Ansible win_file模块注册结果
例如这个剧本......
---
- hosts: windows_server
gather_facts: no
- name: create directory on remote windows server
win_file:
path: 'c:\temp}'
state: directory
register: task_results
debug: var=task_results
...不打印任务的结果。
任何帮助将不胜感激。