diff --git a/ansible_mitogen/connection.py b/ansible_mitogen/connection.py index dfc3aec4..48158265 100644 --- a/ansible_mitogen/connection.py +++ b/ansible_mitogen/connection.py @@ -419,7 +419,9 @@ CONNECTION_METHOD = { 'ssh': _connect_ssh, 'smart': _connect_ssh, # issue #548. 'su': _connect_su, + 'ansible.builtin.su': _connect_su, 'sudo': _connect_sudo, + 'ansible.builtin.sudo': _connect_sudo, 'doas': _connect_doas, 'mitogen_su': _connect_mitogen_su, 'mitogen_sudo': _connect_mitogen_sudo,