ahuffman / ansible-fact

Infrastucture-as-Code in Reverse
9 stars 6 forks source link

netstat/open listening port facts #18

Closed ahuffman closed 5 years ago

ahuffman commented 5 years ago

build a fact collector to parse netstat/listening port data.

ahuffman commented 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.

ahuffman commented 5 years ago

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