feat(podman_prometheus): initial role for running prometheus in podman
All checks were successful
Ansible Lint Check / lint (push) Successful in 57s

This commit is contained in:
Iain Learmonth 2025-12-22 11:09:36 +00:00
parent 5c98a76889
commit 91390d7359
8 changed files with 272 additions and 0 deletions

View file

@ -0,0 +1,14 @@
=========================================================
A Prometheus instance is hosted on this server.
Podman user: {{ podman_prometheus_podman_rootless_user }}
=========================================================
# Become the podman user
sudo -iu {{ podman_prometheus_podman_rootless_user }}
# Check the Prometheus status
systemctl --user status prometheus.service
# Restart Prometheus
systemctl --user restart prometheus.service
# Follow the logs for Prometheus
journalctl --user -fu prometheus.service
=========================================================