Skip to content

Publish Ansible Galaxy Collection #1743

@Lirt

Description

@Lirt

Is your feature request related to a problem? Please describe.

I would like to use ansible roles from image-builder repository using ansible-galaxy. This would enable users to use collections (or perhaps individual roles) outside of this repository (in their CI). Ansible roles are already well written and generalized. It is possible to use them also outside this image building process.

Describe the solution you'd like

Add ansible-galaxy meta files and CI commands to build and publish collection of roles for Linux/Unix like systems and Windows. There would be 2 collections. I don't need individual roles to be published. Roles can be published on git tag (eg. next version - tag 0.1.43 would publish collection with semver 0.1.43).

Describe alternatives you've considered

I was using git clone to get the roles into my pipeline. There already exists ansible native approach (galaxy), so I am opening this feature request to see if community is also interested to avoid "hacky" approach of git cloning and use proper way of packaging the collection using ansible-galaxy.

Additional context

I will open PR with change proposal. This however has to be set up by some of the maintainers as it requires to create some organization/namespace at https://galaxy.ansible.com.


/kind feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions