Ansible 2.0 window modules

Hi all,

I’m using Ansible 2.0 but I have problem with:

  • win_file: can’t create new directory

sample playbook

- name: create Source directory
  win_file: path=C:\MySource state=directory

- win_service: can't manage windows service (no affect). The input name is the service name (service name is the same with service display name)

sample playbook:

Please disregard about the win_file. I can make it run. My typo error!

For win_service: put the value in “” then it works :smiley:

I do not get off with a strange sentence.
I think that it is OK if I escape ""
win_file: path=“C:\MySource” state=directory

2016年4月1日金曜日 10時59分46秒 UTC+9 Quang Truong: