Refactor as Ansible Collection and Roles #181
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As requested here: #180
I am delivering a proof-of-concept refactor on how you can switch the current repository to ansible collections and roles. For this initial draft, I have simply split the
lemmy
stuff frompictrs-safety
into individual roles and added the 'photon' role. The expectation is that each component of lemmy can be split into its own role.backend
,rust_ui
,pict_rs
,pictrs_safety
,proton
,alexandrite
etcThe
backend
role contains every lemmy component right now, as I don't have time to do more. But the way I extricatedpictrs_safety
can be used for the others, and to add new frontends follow the approach of photon. I don't know the process to make a frontend the "default", so you'd have to add that yourselves.I have also made some improvements on your existing ansible code:
include_tasks
andlookup
and only the distinct code per distro needs to be split.inventory.yml
instead ofhosts
for better readabilityNote: This collection is untested. There's may be some syntax errors etc. But the general conversion is accurate..