Executing Python pytest test scripts from Ansible AWX

Hi,

I’m tryng to run TestInfra from Ansible Tower on remote hosts. However, every solution I’ve explored requires creating an Ansible Playbook that will be used to set up the environment and run the TestInfra/pytest scripts, including the creation and deployment of containers.

I can easily execute it from the command line with Ansible Core:
py.test --hosts=web --ansible-inventory=inventory --connection=ansible test_web.py

Is there is a way integrating an executing test scripts from Ansible Tower, without installing any additional software on remote hosts?

Would appreciate any ideas!