diff --git a/tasks/main.yml b/tasks/main.yml index 19c1a26..211bee9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,7 +22,7 @@ recurse: yes owner: "{{ prometheus_exporters_common_user}}" group: "{{ prometheus_exporters_common_group }}" - when: prometheus_node_exporter_updated | changed + when: prometheus_node_exporter_updated is changed - name: create symlink to the current release file: diff --git a/vars/main.yml b/vars/main.yml index ed5cb64..897fcf0 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1 +1 @@ -url: "{% if prometheus_node_exporter_url is not defined %}{% if prometheus_node_exporter_version | version_compare('0.13.0', '>=') %}https://github.com/prometheus/node_exporter/releases/download/v{{ prometheus_node_exporter_version }}/{{ prometheus_node_exporter_release_name }}.tar.gz{% else %}https://github.com/prometheus/node_exporter/releases/download/{{ prometheus_node_exporter_version }}/{{ prometheus_node_exporter_release_name }}.tar.gz{% endif %}{% else %}{{ prometheus_node_exporter_url }}{% endif %}" +url: "{% if prometheus_node_exporter_url is not defined %}{% if prometheus_node_exporter_version is version_compare('0.13.0', '>=') %}https://github.com/prometheus/node_exporter/releases/download/v{{ prometheus_node_exporter_version }}/{{ prometheus_node_exporter_release_name }}.tar.gz{% else %}https://github.com/prometheus/node_exporter/releases/download/{{ prometheus_node_exporter_version }}/{{ prometheus_node_exporter_release_name }}.tar.gz{% endif %}{% else %}{{ prometheus_node_exporter_url }}{% endif %}"