Testing a collection

Hi,

I’m working on a new collection to help manage Visual Studio component installation. I’m trying to do some testing of the project, but I’m having trouble testing it. I wrote a simple deploy.yml with an inventory.yml to connect with a Vagrant instance for testing purposes, but I can’t get ansible-playbook over the “can’t find your module” bit. ansible-galaxy also seems to just refuse to pay attention to attempts to use src: git+file://… pointing to the local checkout to make it available. What might I be missing?

Thanks,

–Ben

I have a workaround to use ansible-galaxy collection build and ansible-galaxy collection install, but this seems…roundabout to me.

Hi @ben.boeckel ! I’ve moved this topic to the Project Discussions > Collection Development category in the hopes it will attract the people who may be able to help you. Welcome to the Ansible forum!

1 Like

Using ansible-galaxy to deal with git clones is generally speaking less useful than just cloning your repo to a place where ansible will look.

Such as cloning to:

  1. ~/.ansible/collections/ansible_collections/<namespace>/<name>
  2. <playbook_dir>/collections/ansible_collections/<namespace>/<name>
1 Like