Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grafana-agent: Fix check mode #124

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

AmandaCameron
Copy link
Contributor

This should make the grafana-agent role work in ansible's --check mode. I tested this against my homelab ansible playbook, and it works when there's no changes, and when the config changes. I did not test if it'll work for a fresh install because I tested installing the agent by itself before starting on this PR.

Fixes #123

@CLAassistant
Copy link

CLAassistant commented Nov 6, 2023

CLA assistant check
All committers have signed the CLA.

@AmandaCameron
Copy link
Contributor Author

This PR also worked when there was a version change so I'm 90% sure it'll behave properly when doing a fresh install as well.

@ishanjainn
Copy link
Member

Thanks @AmandaCameron for adding this, This LGTM!
Will merge it as part of next release

@ishanjainn ishanjainn merged commit 2e0b407 into grafana:main Dec 5, 2023
5 of 6 checks passed
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.

Grafana Agent role can not run in check mode
3 participants