I have a situation where I have the AWX repo cloned into the /tmp/ folder on a remote docker swarm container and I am already using ansible playbooks. What I am trying to do is run the playbook I have already and then run the playbook in the AWX repo I cloned. The problem is I can not find any way to run a playbook remotely. The main suggestion is:
---
- import_playbook: setup-docker-swarm-playbook.yml
- import_playbook: /tmp/awx/installer/install.yml
but this does not work because import_playbook only checks based on the directory you are in so it is not checking the remote for /tmp/awx, but just checking my project I am working in. Additionally, import_playbook does not support any other parameters past the path to the playbook. I have also tried using ansible.builtin.fetch to grab the file remote playbook and copy it to my project, but that doesn't work either because the playbook can not run any of its roles to check the rest of the AWX settings.
Any advice would be appreciated.