diff --git a/roles/prometheus-exporter/tasks/main_win.yml b/roles/prometheus-exporter/tasks/main_win.yml index 76d90ac..4135876 100644 --- a/roles/prometheus-exporter/tasks/main_win.yml +++ b/roles/prometheus-exporter/tasks/main_win.yml @@ -1,3 +1,13 @@ - 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