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

Support openrc init system in roles for alpine #70

Open
proffust opened this issue Aug 20, 2024 · 1 comment
Open

Support openrc init system in roles for alpine #70

proffust opened this issue Aug 20, 2024 · 1 comment

Comments

@proffust
Copy link

Roles currently assume systemd as the init system and contain systemd-specific configuration. This prevents the roles from working properly on hosts using openrc as the init system.

To expand compatibility, the roles should be updated to support both systemd and openrc. For roles that manage services, init scripts should be added and enabled for openrc alongside the existing systemd unit files. Any systemd-specific commands or config files should be adapted to also work with openrc where applicable.

This will allow the roles to deploy successfully to a wider range of hosts without init system limitations. Supporting both major init systems will improve flexibility and reuse of the roles.

@tiny-pangolin
Copy link

I think the systemd plays could be replaced with the service module which supports systemd and openrc. The ansible_service_mgr fact can be used to decide deploy the correct files to the correct init system

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

No branches or pull requests

2 participants