Executing Python pytest test scripts from Ansible AWX

126 views
Skip to first unread message

Tom Johnson

unread,
Aug 25, 2023, 6:39:47 AM8/25/23
to AWX Project
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!
Reply all
Reply to author
Forward
0 new messages