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

fix: ignore errors creating the groups in kodi_groups #10

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

tomeon
Copy link
Collaborator

@tomeon tomeon commented Feb 27, 2024

Some supported targets lack one or more prerequisites of the Ansible group task. For instance, the command groupadd is absent on LibreELEC. This PR updates the group task to specify ignore_errors, punting any issues with absent groups to the subsequent user task the creates kodi_user. If any groups specified in kodi_groups are absent, then the user task will fail.

as some supported distributions (including LibreELEC) may lack
`groupadd` and/or other prerequisites of the Ansible `group` module.  If
the group-creation tasks fail and one or more target groups do not
already exist, then the task that creates `kodi_user` and adds it to
`kodi_groups` will fail (so group-creation failures are safe to ignore,
as any real problems will bubble up downstream).
when specifying the `groups` attribute to the Ansible `user` module.
@tomeon tomeon force-pushed the fix-kodi_groups-creation branch from 98e643f to 4dc8f86 Compare February 27, 2024 14:13
@tomeon tomeon force-pushed the fix-kodi_groups-creation branch from 4dc8f86 to 9aff55e Compare February 27, 2024 14:15
@tomeon
Copy link
Collaborator Author

tomeon commented Feb 27, 2024

Embarrassed that I didn't catch this with the Vagrant environment in the PR you just merged; sorry! 🥲

@jose1711 jose1711 merged commit 9a98826 into jose1711:master Mar 15, 2024
6 checks passed
@jose1711
Copy link
Owner

Thank you!

@tomeon tomeon deleted the fix-kodi_groups-creation branch March 15, 2024 19:33
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