Hi
I want to use ansible_user in group_vars so that I can set ansible_winrm_user to add a domain name for authentication.
EG.
ansible_winrm_user: “{{ ansible_user }}@{{ windows_domain}}”
become_user: “{{ ansible_user }}@{{ windows_domain}}”
I’d apply this to group_vars for windows machines.
When I try it I get the following error:
The field ‘ansible_winrm_user’ has an invalid value, which includes an undefined variable. The error was: ‘ansible_user’ is undefined",
I’ve also tried it with remote_user to the same result.
It used to work ~2.1 but doesn’t on 2.9.
Is there a new way of doing this or is it a bug?
Thanks.
Si.