From 30a119e24191e270c230449de63937a88557aaca Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Wed, 26 May 2021 12:00:49 +0200 Subject: [PATCH] review conditional call --- tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 118ba24..1b4139c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,19 +11,19 @@ - name: 'prometheus | Node exporter' include_tasks: 'node_exporter.yml' when: - - "'node' in {{ prometheus_exporter_packages }}" + - "'node' in prometheus_exporter_packages" - name: 'prometheus | MongoDB exporter' include_tasks: 'mongodb_exporter.yml' when: - - "'mongodb' in {{ prometheus_exporter_packages }}" + - "'mongodb' in prometheus_exporter_packages" - name: 'prometheus | MySQL exporter' include_tasks: 'mysqld_exporter.yml' when: - - "'mysql' in {{ prometheus_exporter_packages }}" + - "'mysql' in prometheus_exporter_packages" - name: 'prometheus | PostgreSQL exporter' include_tasks: 'postgresql_exporter.yml' when: - - "'postgresql' in {{ prometheus_exporter_packages }}" + - "'postgresql' in prometheus_exporter_packages"