From 7a159304ec332c9d468a916fb7599e05326a0099 Mon Sep 17 00:00:00 2001 From: Carrol Cox Date: Wed, 5 Aug 2020 11:47:10 +0500 Subject: [PATCH] [fix] brackets expression for tenary filter --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index f54474b..0c89c4f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,4 +15,4 @@ - name: check pganalyze-collector service state service: name: pganalyze-collector - state: "{{ pganalyze_service_state == 'stopped' | ternary('stopped', 'started') }}" + state: "{{ (pganalyze_service_state == 'stopped') | ternary('stopped', 'started') }}"