ansible-collection-apps/playbooks/templates/seafile_sd.yml

10 lines
232 B
YAML

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