Closed ahuffman closed 5 years ago
Ansible 2.9 may already have a new fact collector available for this: https://github.com/ansible/ansible/blob/stable-2.9/changelogs/CHANGELOG-v2.9.rst called listen_ports_facts
. We need to research and look into this prior to dedicating development efforts.
Just validated the new module is exactly what we need. Here's a link to the code: https://github.com/ansible/ansible/blob/58edfec145cf3c0ffa38a35ca4c01bd0daac38e8/lib/ansible/modules/system/listen_ports_facts.py
build a fact collector to parse netstat/listening port data.