HI, I have a play that SHOULD copy a file over from my server to a Windows box AND set permissions to 660 (notice I have tried both modes below separately):
win_copy:
src: /ansible/playbook/foo.foo
dest: C:\mydir\foo.foo
state: file
mode: “ug+rw”
OR mode: 0660
The play runs w/o fail.
Unfortunately, though, when I stat the file I see:
From what I can tell of the documentation, win_copy does not support a mode argument. It’s likely just being ignored, due to how the argument parsing in windows modules is currently handled.