Closed winsmith closed 2 months ago
Agreed, it should run in check mode. Could you please raise a PR?
@winsmith any progress on this ?
@voidquark whoops! Here you go: https://github.com/grafana/grafana-ansible-collection/pull/262
It is still failing but this time with
fatal: [***]: FAILED! => changed=false
msg: 'Could not find the requested service loki.service: host'
Added a fix for it in #266. Feel free to takeover from there.
When running in check mode, the grafana.grafana.loki role fails to execute because a variable is not set. Here is the error message:
I believe the first task in the role, Scrape Github API endpoint to obtain latest Loki version, should always be run, even in check mode. This should fix the issue.
If requested, I'll gladly make a PR that adds
check_mode: false
to the task.