Inventories failing using infra.controller_configuration.filetree_create in AAP 2.5

I’m trying to run a playbook in AAP 2.5 to pull all objects from the AAP instance, when I run this from the command line, it exports objects as expected, but when I try to automate this in AAP 2.5, I’m getting the following error.

TASK [infra.controller_configuration.filetree_create : Get the inventories from the API] ***
fatal: [localhost]: FAILED! => {“msg”: “An unhandled exception occurred while running the lookup plugin ‘ansible.controller.controller_api’. Error was a <class ‘ansible.errors.AnsibleError’>, original message: The requested object could not be found at /api/controller/v2/api/v2/inventories/… The requested object could not be found at /api/controller/v2/api/v2/inventories/.”}

I have verified that I’m not adding the /v2/api/ suffix to the hostname in the playbook, seems to be stemming from the main.yml file in filetree_create, but I’m not that familiar with this collection.

Any help would be appreciated, thank you.