# trouble using sros modules to log in with a specific user

**URL:** <https://forum.ansible.com/t/trouble-using-sros-modules-to-log-in-with-a-specific-user/23131>\
**Category:** Ansible Project\
**Created:** [November 30, 2016, 12:47am UTC](https://forum.ansible.com/t/trouble-using-sros-modules-to-log-in-with-a-specific-user/23131 "2016-11-30T00:47:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Keeling](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@Nick\_Keeling](https://forum.ansible.com/u/Nick_Keeling)\
**Post date:** [November 30, 2016, 12:47am UTC](https://forum.ansible.com/t/trouble-using-sros-modules-to-log-in-with-a-specific-user/23131/1 "2016-11-30T00:47:57Z")

</div>

First of all, I am still learning Ansible, so there is a very real possibility this is user error, but here is my issue:

When I try to log in using the sros module, regardless of the username I am using in the yml file, it is using my username from the ansible host machine

Here is the yml:

`

---

<div class="post-metadata">

**Author:** ![psprygada](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@psprygada](https://forum.ansible.com/u/psprygada)\
**Post date:** [December 13, 2016, 2:32am UTC](https://forum.ansible.com/t/trouble-using-sros-modules-to-log-in-with-a-specific-user/23131/2 "2016-12-13T02:32:15Z")

</div>

Hi Nick,

Not sure if you figure this out yet or not but you need to add connection: local to your playbook. Your updated playbook should look like this:

[https://gist.github.com/privateip/2482751b36b30eb60151e94e16c905ea](https://gist.github.com/privateip/2482751b36b30eb60151e94e16c905ea)

Peter
