Interview Prep/Ansible/Roles, Collections and Galaxy

What is inside a collection's directory layout?

AdvancedConceptRoles, Collections and Galaxy
Answer
myorg/platform/
  galaxy.yml            # namespace, name, version, dependencies, authors
  README.md
  meta/runtime.yml      # requires_ansible, action groups, plugin routing
  plugins/
    modules/  filter/  lookup/  inventory/  module_utils/  action/
  roles/
  playbooks/
  docs/
  tests/

It installs under ansible_collections/myorg/platform. meta/runtime.yml sets the minimum ansible-core version and can redirect or deprecate plugin names. Plugins and roles are referenced as myorg.platform.<name>.

All Ansible questions Roadmap: Ansible

More on Roles, Collections and Galaxy