You can probably use the win_splitdrive filter to get the drive letter from the path
http://docs.ansible.com/ansible/latest/playbooks_filters.html You may also perhaps find using the SystemDrive and SystemRoot environment variables contain what you need. The following powershell will return the system root, for example echo $env:SystemRoot Hope this helps, Jon On Monday, February 5, 2018 at 10:27:15 AM UTC, Suporter wrote: > > hi, > i have a variable registered as Location and the value is > C:\Windows\System32, i want to modify it to C:\windows\felik , i would like > to modify the location upto drive level wherever required.. how can i do > this > -- 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/6071c174-6627-495a-8e81-35b602f9a5ac%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
