1
0
Fork 0
mirror of https://github.com/ansible-collections/ansible.posix.git synced 2026-02-03 23:51:48 +00:00
This commit is contained in:
Will Szumski 2026-01-04 12:07:59 +08:00 committed by GitHub
commit 2733dfd71f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -354,6 +354,7 @@ class ActionModule(ActionBase):
user = C.DEFAULT_REMOTE_USER
else:
user = task_vars.get('ansible_user') or self._play_context.remote_user
user = self._templar.template(user)
if self._templar is not None:
user = self._templar.template(user)