- name: Check Service by Display name | NameOfMyService
- name: Print status of Windows Service | NameOfMyService
- name: Frobnicate the service
playbooks can only have alphanumeric characters and underscores
run them with ansible-playbook namespace.module.playbook_name_without_the_extension
The documentation provided by ansible is getting better:
doesn't quite explain why it wasn't ...
Maybe try using lsb_release to derive the information, setting it as a fact, then look up the family from an Ansible hash map populated with the associations. Here is a mention of ansible_facts['os_family'] at https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#ansible-facts-os-family