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 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