Skip to content

Add run tag to service status check#788

Open
mswillus wants to merge 1 commit into
prometheus-community:mainfrom
mswillus:main
Open

Add run tag to service status check#788
mswillus wants to merge 1 commit into
prometheus-community:mainfrom
mswillus:main

Conversation

@mswillus
Copy link
Copy Markdown

@mswillus mswillus commented Apr 21, 2026

The service status check should only be executed when prometheus was started by ansible.
It won't be started by ansible when the tag prometheus_run is skipped.

I need this change because I only use the ansible role to generate the prometheus configuration.
I then run the daemon using podman. I use --skip-tags prometheus_run to stop ansible from starting the prometheus daemon on the host. Therefore the service check will always fail.
See also the task just above the changed one where the tag is included as you would expect.

Signed-off-by: Mark <81824608+mswillus@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant