Im using ansible 2.9.2, i have a playbook that copys a file to a virtual machine in a vcenter, i need to put a var in a string :
somevar = home
dest: 'c:\Users\"{{ somevar }}"\Desktop\test'
This way didnt work, the error i get :
msg = 'A specified parameter was not correct
I want to get it like this :
dest: 'c:\Users\home\Desktop\test'
How can i do it ? Thanks