roles: blackbox-exporter: templates: blackbox.config.j2: switch to LF

This commit is contained in:
2026-06-12 07:33:21 +00:00
parent 43c7959d85
commit 006f174778
@@ -1,65 +1,65 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
modules: modules:
http_2xx: http_2xx:
prober: http prober: http
{% if inventory_hostname == 'check.home.arpa' %} {% if inventory_hostname == 'check.home.arpa' %}
http: http:
preferred_ip_protocol: "ip4" preferred_ip_protocol: "ip4"
ip_protocol_fallback: true ip_protocol_fallback: true
{% endif %} {% endif %}
http_2xx_selfsigned: http_2xx_selfsigned:
prober: http prober: http
http: http:
tls_config: tls_config:
insecure_skip_verify: true insecure_skip_verify: true
http_post_2xx: http_post_2xx:
prober: http prober: http
{% if inventory_hostname == 'check.home.arpa' %} {% if inventory_hostname == 'check.home.arpa' %}
http: http:
method: POST method: POST
preferred_ip_protocol: "ip4" preferred_ip_protocol: "ip4"
ip_protocol_fallback: true ip_protocol_fallback: true
{% endif %} {% endif %}
tcp_connect: tcp_connect:
prober: tcp prober: tcp
smtp_check: smtp_check:
prober: tcp prober: tcp
timeout: 5s timeout: 5s
tcp: tcp:
{% if inventory_hostname == 'check.home.arpa' %} {% if inventory_hostname == 'check.home.arpa' %}
preferred_ip_protocol: "ip4" preferred_ip_protocol: "ip4"
ip_protocol_fallback: true ip_protocol_fallback: true
{% endif %} {% endif %}
query_response: query_response:
- expect: "^220(.*)ESMTP(.*)$" - expect: "^220(.*)ESMTP(.*)$"
- send: "EHLO prober\r" - send: "EHLO prober\r"
- expect: "^250-STARTTLS" - expect: "^250-STARTTLS"
- send: "STARTTLS\r" - send: "STARTTLS\r"
- expect: "^220" - expect: "^220"
- starttls: true - starttls: true
- send: "EHLO prober\r" - send: "EHLO prober\r"
- expect: "^250-AUTH" - expect: "^250-AUTH"
- send: "QUIT\r" - send: "QUIT\r"
imap_check: imap_check:
prober: tcp prober: tcp
timeout: 5s timeout: 5s
tcp: tcp:
{% if inventory_hostname == 'check.home.arpa' %} {% if inventory_hostname == 'check.home.arpa' %}
preferred_ip_protocol: "ip4" preferred_ip_protocol: "ip4"
ip_protocol_fallback: true ip_protocol_fallback: true
{% endif %} {% endif %}
query_response: query_response:
- expect: "OK.*STARTTLS" - expect: "OK.*STARTTLS"
- send: ". STARTTLS" - send: ". STARTTLS"
- expect: "OK" - expect: "OK"
- starttls: true - starttls: true
- send: ". capability" - send: ". capability"
- expect: "CAPABILITY IMAP4rev1" - expect: "CAPABILITY IMAP4rev1"
icmp: icmp:
prober: icmp prober: icmp
{% if inventory_hostname == 'check.home.arpa' %} {% if inventory_hostname == 'check.home.arpa' %}
icmp: icmp:
preferred_ip_protocol: "ip4" preferred_ip_protocol: "ip4"
ip_protocol_fallback: true ip_protocol_fallback: true
{% endif %} {% endif %}