I'm trying to develop a reusable collection of playbooks that I can run from docker containers. I don't want to share duplicate code between containers and I don't want to have containers that run multiple playbooks so what I'd like do develop is something where I have a
playbooks/doit.yml
file and a
.ansible/collections/playbooks/x/y/playbooks/thing-to-do.yml
playbook that I can import into my playbook
However, none of the documentation explains how to do that yet.
import playbooks doesn't say anything about collections
https://docs.ansible.com/ansible/latest/modules/import_playbook_module.html
and playbooks collection documentation currently says tbd
https://docs.ansible.com/ansible/latest/dev_guide/developing_collections.html#playbooks-directory
I'm running ansible 2.9, I suppose I could import the playbook given the full path, but that seems like not what they're wanting me to do.