Checks if a given endpoint (address + port) is up, trying to connect to it and, if up, checks if it has TLS enabled by trying to cause a certificate error while connecting.
The ip we are trying to connect to.
The port of the address.
The time in seconds that the process is going to be waiting for the checking to take place. If this checking takes more than the specified timeout, this will result in an error message
# Check if ports has tls enabled
- name: Check http or https
datadope.discovery.check_connection:
address: "127.0.0.1"
port: 38956
If the given endpoint is available
If the given endpoint has tls enabled or not
GNU General Public License v3.0 or later
See COPYING to see the full text.
- Datadope (@datadope-io)