dj-wasabi / ansible-telegraf

Installing and configuring Telegraf via Ansible for RedHat/Debian/Ubuntu/Windows/Suse.
MIT License
134 stars 116 forks source link

Ensure check-mode works #163

Closed pieterlexis-tomtom closed 1 year ago

pieterlexis-tomtom commented 1 year ago

Description of PR This commit ensures that check-mode works on systems when this role is run without any telegraf being installed.

Before

fatal: [host-1]: FAILED! => {"changed": false, "msg": "Could not find the requested service telegraf: host"}

After

fatal: [host-1]: FAILED! => {"changed": false, "msg": "Could not find the requested service telegraf: host"}
...ignoring

Type of change

Bugfix Pull Request

dj-wasabi commented 1 year ago

Thanks! 👍