--- {% for host in groups['seafile'] %} - targets: - "{{ hostvars[host]['node_exporter_tailscale_ipv4'].stdout }}:9100" labels: job: node app: seafile instance: "{{ host }}" hostname: "{{ host }}" {% endfor %}