Special kind of become

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

Can't guarantee it, but... Could become_flags help?
(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

Thanks

But thats not possible to construct using become_flags

Best regards
Preben