Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: create collection to store reusable roles. #135

Merged
merged 2 commits into from
May 23, 2024

Conversation

jrasell
Copy link
Contributor

@jrasell jrasell commented May 23, 2024

While the previous approach worked for a single repository, it did not work for repo that might want to also use the Ansible roles.

Ansible solves the problem of a group of roles in a single repo with collections. A collection allows importers to use the group of Ansible resources in a similar manner to a single repo that contains a role. This allows both this repo and others to use the available Ansible resources, without duplication.

In order to make this change, the location of the Ansible roles has moved in order to match the collection namespace and name. It also removes the role path configuration and updates the playbooks to use the namespace collection.

While the previous approach worked for a single repository, it did
not work for repo that might want to also use the Ansible roles.

Ansible solves the problem of a group of roles in a single repo
with collections. A collection allows importers to use the group
of Ansible resources in a similar manner to a single repo that
contains a role. This allows both this repo and others to use the
available Ansible resources, without duplication.

In order to make this change, the location of the Ansible roles
has moved in order to match the collection namespace and name. It
also removes the role path configuration and updates the playbooks
to use the namespace collection.
@jrasell jrasell self-assigned this May 23, 2024
@jrasell jrasell requested a review from pkazmierczak as a code owner May 23, 2024 09:01
Copy link
Contributor

@pkazmierczak pkazmierczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for doing this @jrasell!

@jrasell jrasell merged commit 68fc983 into main May 23, 2024
2 checks passed
@jrasell jrasell deleted the f-add-ansible-collection branch May 23, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants