global: scrape_interval: 30s scrape_configs: - job_name: 'node' static_configs: {%- for host in groups['all'] %} - targets: ['{{ hostvars[host].int_ip }}:9100'] {%- endfor %}