- name: Install prometheus exporter win_chocolatey: name: prometheus-windows-exporter.install package_params: "/ListenPort:9100" - name: Allow access to metrics win_firewall_rule: name: "Allow access to Prometheus metrics" enabled: true action: allow direction: in protocol: tcp localport: 9100