Recently I did found this ansible module for windows : https://docs.ansible.com/ansible/latest/collections/community/windows/win_firewall_rule_module.html
There are some examples how to use it and they work for me, but there are either:
Adding 1 port for 1 rule (3389)
Adding one range of ports for 1 rule (5000-5010)
How to use this module to make a single rule, like this : 3389, 5000-5010? Or maybe there are other better windows modules for this ?