Only if you set ansible_ssh_user previously, the connection information won't be 'recursive' to itself.
That said, in future you could use this lookup to get the 'resolved' remote_user for the connection plugin https://github.com/ansible/ansible/pull/74186 -- ---------- Brian Coca -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7ffm8fZgiRYZzQ%3DRk2GTGW8DdwEL75UyrJ%3DmuqNZC83ig%40mail.gmail.com.
