1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-10-23 03:46:59 +02:00

Add submission+starttls blackbox check

This commit is contained in:
s3lph 2021-02-20 21:43:24 +01:00
parent 04bf2db312
commit 3ab49a7daf

View file

@ -131,6 +131,20 @@ modules:
- expect: "^250 .*$" - expect: "^250 .*$"
- send: "QUIT" - send: "QUIT"
submission_starttls:
prober: tcp
timeout: 2s
tcp:
{% if blackbox_prefer_ipv4 -%}
preferred_ip_protocol: ip4
{% endif -%}
query_response:
- starttls: true
- expect: "^220 .*SMTP .*$"
- send: "HELO {{ blackbox_smtp_name }}"
- expect: "^250 .*$"
- send: "QUIT"
imap: imap:
prober: tcp prober: tcp
timeout: 2s timeout: 2s