pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.93k stars 383 forks source link

Parse os-release for Servers Incompatible with lsb_release #1222

Closed wowi42 closed 1 week ago

wowi42 commented 1 month ago

Summary

This PR adds support for extracting OS info from servers that don't support lsb_release by parsing the os-release file.

Benefits