# Special kind of become

**URL:** <https://forum.ansible.com/t/special-kind-of-become/25622>\
**Category:** Ansible Project\
**Created:** [September 28, 2017, 11:18am UTC](https://forum.ansible.com/t/special-kind-of-become/25622 "2017-09-28T11:18:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preben\_Asmussen](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@Preben\_Asmussen](https://forum.ansible.com/u/Preben_Asmussen)\
**Post date:** [September 28, 2017, 11:18am UTC](https://forum.ansible.com/t/special-kind-of-become/25622/1 "2017-09-28T11:18:10Z")

</div>

Hi

I have started using Ansible resently and have a small problem.

I have to ssh in as {someuser} and become {jvm} user to execute copy and http get task

My sites file looks like

---

<div class="post-metadata">

**Author:** ![azaghal](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/azaghal/32/4743_2.png) [@azaghal](https://forum.ansible.com/u/azaghal)\
**Post date:** [September 28, 2017, 11:24am UTC](https://forum.ansible.com/t/special-kind-of-become/25622/2 "2017-09-28T11:24:37Z")

</div>

Can't guarantee it, but... Could become\_flags help?  
([https://docs.ansible.com/ansible/latest/become.html](https://docs.ansible.com/ansible/latest/become.html))

Not sure you can make it invoke "sudo su -s /bin/bash - jvm" exactly,  
but worth a try.

Best regards

---

<div class="post-metadata">

**Author:** ![Preben\_Asmussen](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@Preben\_Asmussen](https://forum.ansible.com/u/Preben_Asmussen)\
**Post date:** [September 28, 2017, 11:55am UTC](https://forum.ansible.com/t/special-kind-of-become/25622/3 "2017-09-28T11:55:02Z")

</div>

Thanks

But thats not possible to construct using become\_flags

Best regards  
Preben
