-
Notifications
You must be signed in to change notification settings - Fork 221
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
Use ansible_os_family instead of testing distribution directly #120
Conversation
This will catch the entire Red Hat "family" as it were rather than limiting to just CentOS, thereby allowing this role to work against RHEL 8.
@archoversight IIRC I tried using that at first, and for some reason had to replace it with the more complex check in #117 . I can't remember what that reason is though, and haven't time to check it right now. |
I think I remember now - |
@dobbymoodge with the downside that it doesn't work for RHEL systems... It sounds like Ansible considering Fedora RHEL family is what's broken here. |
Um, I think the opposite? My PR is specifically to fix this properly for RHEL systems. Without my PR, the role fails on RHEL 8, which is my team's deployment platform. My change correctly specifies the version check for Fedora versions at or above 27, and CentOS and RHEL systems at or above 8. |
The check specifies This is the reason I created the PR in the first place because while deploying against a RHEL 8 system it failed to properly set the facts for setting the appropriate path. |
I merged #117 since that's closer to the intent of listing specific versions that we know are compatible. My intent was more along the lines of "Fedora split openvpn configs into server and client, and CentOS followed". RHEL missing from that list was an oversight. That said, I don't think the answer is to say "all RedHat type releases past 8 should used the systemd logic", since that isn't true. It might be enough to say "if it's a RHEL-type, and using systemd, then use the systemd logic". I'm continuing that in #129, closing this for now. |
This will catch the entire Red Hat "family" as it were rather than
limiting to just CentOS, thereby allowing this role to work against RHEL
8.