Closed appliedprivacy closed 4 years ago
I think adding or (node_exporter_binary_local_dir != "")
to the list of conditions in https://github.com/cloudalchemy/ansible-node-exporter/blob/master/tasks/main.yml#L10 should solve the issue.
Could you create a PR?
thanks for proposing this solution, I tested it and it does what it should do
What happened?
After changing
to
I somewhat expected the role to copy the new version to the servers, but install.yml is ignored after the first playbook run and the version on the servers is not updated.
Moving the task "propagate locally distributed node_exporter binary" from install.yml to main.yml right after the install.yml import would solve this.
How to reproduce it (as minimally and precisely as possible): run this playbook:
then run this playbook:
Environment
0.21.0
Task is skipped on second run since the node_exporter file exists on the server already: