I’m running Ansible against a remote TinyCoreLinux host (running inside QEMU but I think that doesn’t matter). When I try to use ansible.builtin.group, it selects the wrong module subclass. I believe this is because platform.system() == ‘Linux’, /etc/os-release.ID == ‘TinyCore’, and TinyCore is not supported by module_utils.
I’ve tried overriding various hostvars but an inspection of get_platform_subclass() tells me that there is no hook for overriding distro.id() when there is a value in /etc/os-release.
The actual goal is to trigger the BusyBox subclass because that’s what TCL uses. I don’t think it makes sense for me to submit a new distribution for support.
Before I muck with /etc/os-release to trick Ansible into thinking it’s running on Alpine, is there any cleaner way to do this?
Thank you!
– Salvatore
smile.