From 4276ddae7a69bc25ef649d3d61967848124e9e4c Mon Sep 17 00:00:00 2001 From: Naseem Ullah Date: Mon, 10 Dec 2018 16:39:55 -0500 Subject: [PATCH] replace | with is as per warning msg --- tasks/main.yml | 2 +- vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %}"