@nbap Yeah:
```
[some_hosts]
server.com ansible_ssh_user=sudousername ansible_connection=ssh
server.com ansible_ssh_user=root ansible_connection=ssh
```
Ansible scripts are supposed to be runnable multiple times to update/reconfigure the machine. This way when you run the playbook it will try both connections in parallel and configure it using root or sudo user depending on what user can connect to it and the other connection should fail but that's fine.