package_for_lola
Wrap generated Ansible skills into a Lola-compatible module directory for marketplace or 'lola mod add' use. Copies skills into target module structure and writes market metadata.
Instructions
Wrap already-generated skills into a Lola-compatible module directory.
.. deprecated::
Prefer :func:package_as_plugin (Agent Plugins). Kept for one release
cycle for backward compatibility.
Does not change generate_* output layout. Copies
skills/{collection-kebab}/{skill}/ into
{output_dir}/{module}/skills/{skill}/ for marketplace /
lola mod add use. Replaces any existing skills/ tree under the
target module directory (destructive but idempotent).
Returns: {"collection", "module_name", "module_dir", "skill_count", "skills", "market_yml"} or {"error": str} on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection namespace whose generated skills to wrap (e.g. 'netbox.netbox'). | |
| output_dir | Yes | Parent directory where the Lola module directory will be created (e.g. '.' or '/tmp/lola-modules'). | |
| source_dir | No | Optional skills root to read from. Defaults to ANSIBLE_KNOW_SKILLS_PATH or SKILLS_DIR (same roots as list_skills). | |
| module_name | No | Optional Lola module directory name. Defaults to 'ansible-{collection-kebab}' (e.g. 'ansible-netbox-netbox'). | |
| write_market_yml | No | When true (default), write lola-market.yml with collection metadata beside the module skills/ tree. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |