execute command with other user ,different to remote_user

Hello family,
I have a small problem on ansible, I hope you can help me.
I develop a playbook for automating the installation of an agent. at the beginning of the playbook I start by creating a user ctmagent + directory + copy of the package + tar of the package on the destination /local / ctmagts,
after i make a command - name: launch the agent installation
      command: sudo /local/ctmagts/setup.sh -silent /local/ctmagts/deploy_agent.xml
. the problem is that it installs the package on / home / ansible and not /local / ctmagts.
how  can I reconfigure the path so that it can install the package on the desired path?

Regards)