From e85524eb7ce698a043855438e282ded6d7606c34 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 16 Oct 2025 10:34:30 +0200 Subject: [PATCH 1/2] Fix formatting in README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 74c99c4..1347d3c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # Using the ansible scripts Ansible playbooks for deploying classroom computers. Run with something like: + ansible-playbook --user -k -K -i inventory.yml setup.py or, for Apple computers: + ansible-playbook --user -k -K -i inventory.yml macsetup.py # How classroom computers are prepared at FRI From 60ad70a09fd5a2afecb66359bc293ece9b2e2907 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 16 Oct 2025 10:34:57 +0200 Subject: [PATCH 2/2] prometheus-exporter: set port on Windows and open firewall --- roles/prometheus-exporter/tasks/main_win.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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