Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.38 KB

File metadata and controls

46 lines (31 loc) · 1.38 KB

datadope.discovery.connections_discovery

This role automatically runs the corresponding connection facts module for the target host according to the operating system (Windows or Linux). The information gathered is provided as an ansible fact with key connections that will contain a list of connections and the following information per connection:

  • Current listening ports
  • Current established connections
  • Command line of the process that opened the connection
  • Hostname
  • Process name

Requirements

Windows

It is required to have Powershell 3.0 or newer installed on the machine, as well as enough rights to query the current processes and connections of the machine.

Linux

To gather information about Linux connections, it is necessary to have superuser privileges. This is because the connection_facts module explores the /proc directory to query current processes and connections, which requires elevated permissions.

Example Playbook

- hosts: servers
  roles:
     - role: datadope.discovery.connection_facts

License

GNU General Public License v3.0 or later

See COPYING to see the full text.

Author Information

Please send suggestions or pull requests to make this role better. Also let us know if you encounter any issues installing or using this role.

GitHub: https://github.com/datadope-io/ansible_collection_discovery