-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Add os-release file parsing, partially fix #25897 #33817
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
Conversation
|
I didn't took a look at testing that yet, but plan to add it to the unit tests. |
1b2081d to
d474693
Compare
401b9b0 to
0263852
Compare
|
The test The test |
0263852 to
1a2d90f
Compare
|
The test The test |
f33b63e to
de2c4d5
Compare
de2c4d5 to
3ea96d4
Compare
|
Although it doesn't count: shipit . |
alikins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see the parse function be pulled out of the class. And for it to take a string for input and tests updated to use it.
|
Sorry we kept you hanging this long. We are going to close this as os-release parsing was included in the vendored/updated distribution detection and for the few extra fields we don't return a simple custom inventory plugin can now be added to the default However, we're always up for discussion. Because this project is very active, we're unlikely to see comments made on closed tickets and we lock them after some time. In the future, sometimes starting a discussion on the Ansible Forum before implementing Thank you once again for this and your interest in Ansible! |
Is there any documentation/guide on writing custom |
|
it is just a facts_module, that you can reference via configuration to have the TLDR: retun the info under |
SUMMARY
Add os-release file parsing, partially fix #25897
/etc/os_release is documented on https://www.freedesktop.org/software/systemd/man/os-release.html
ISSUE TYPE
COMPONENT NAME
setup
ANSIBLE VERSION