Hi
I’d expect the following two tasks to return the same output, however the first task returns the user that I was running ansible-playbook as and the second task returns the user set with -u.
I can understand why this might happen, however I need to access the -u username in a task that is delegated to localhost.
Any ideas how I could do that?
Thanks.