Use osfamily fact instead of operatingsystem.

The operatingsystem fact is used across the whole module.
Ensure this applies and switch from operatingsystem fact
to osfamily where needed.