--- #prometheus_exporter_listen_addr: prometheus_exporter_listen_port: 9999 prometheus_exporter_certificate_san: - "DNS:{{ host_name }}.{{ host_domain }}" - "IP:{{ (inventory_hostname == prometheus_server) | ternary('127.0.0.1', (prometheus_exporter_listen_addr | default(ansible_default_ipv4.address))) }}"