I found the solution: - raw: c:\windows\system32\cmd.exe /C rename C:\testdir testdir.bak
On Tuesday, March 8, 2016 at 11:14:24 AM UTC-5, Dimitri Yioulos wrote: > > I need to preserve a Windows directory as "directory.bak". I was hoping > this might work, but it doesn't: > > - raw: c:\windows\system32\cmd.exe rename C:\directory C:\directory.bak > > Is there a way to accomplish what I'm looking to do? > > Thanks > -- 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/d35fb322-9691-45cd-8966-6d79bbe31f0e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
