From 46be4f6a4447ab668f3f189e9f8b4613295e9003 Mon Sep 17 00:00:00 2001 From: Sil Westerveld Date: Mon, 5 Mar 2018 17:10:15 +0100 Subject: [PATCH] Modify when-statement to not include jinja2 templating delimiters such as {{ }} or {% %}, as this will raise a warning as from Ansible 2.3. --- tasks/preflight.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/preflight.yml b/tasks/preflight.yml index 4587982..92e5daa 100644 --- a/tasks/preflight.yml +++ b/tasks/preflight.yml @@ -2,5 +2,5 @@ - name: check collectors fail: msg: "Collector cannot be both disabled and enabled" - when: '"{{ item }}" in "{{ node_exporter_enabled_collectors }}"' + when: item in node_exporter_enabled_collectors with_items: "{{ node_exporter_disabled_collectors }}"