>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.
http://docs.ansible.com/ansible/latest/win_copy_module.html On Wed, Jan 3, 2018 at 4:51 PM, lpescatore via Ansible Project < [email protected]> wrote: > 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: > > > $ stat foo.foo > > File: foo.foo > > Size: 17 Blocks: 1 IO Block: 65536 regular file > > Device: d22da4adh/3526206637d Inode: 562949953957599 Links: 1 > > Access: (0755/-rwxr-xr-x) Uid: ( 544/Administrators) Gid: (197121/ > None) > > Access: 2018-01-03 14:17:25.989300300 -0800 > > Modify: 2018-01-03 14:17:20.822769500 -0800 > > Change: 2018-01-03 14:17:20.822769500 -0800 > > Birth: 2018-01-03 14:17:25.989300300 -0800 > > > Any idea WHY? > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/05578888-f4c7-466e-8ddb-48448c4e47d5%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/05578888-f4c7-466e-8ddb-48448c4e47d5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-OusQRRKNRN9O3CZJWT4SYqdQX4Ke--%2BVJ%3Drf5vt%3DGLw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
