From 620944b0520a99de6ec944188ca872030dfe532c Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Mon, 3 Apr 2017 17:44:03 +0300 Subject: [PATCH] Fix multiline condition for k8s check certs Fixes #1190 --- roles/kubernetes/secrets/tasks/check-certs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes/secrets/tasks/check-certs.yml b/roles/kubernetes/secrets/tasks/check-certs.yml index 9ac877e9a..061b04b04 100644 --- a/roles/kubernetes/secrets/tasks/check-certs.yml +++ b/roles/kubernetes/secrets/tasks/check-certs.yml @@ -54,9 +54,9 @@ - name: "Check_certs | Set 'sync_certs' to true" set_fact: sync_certs: true - when: >- + when: |- {%- set certs = {'sync': False} -%} - {% if gen_node_certs[inventory_hostname] or + {% if gen_node_certs[inventory_hostname] or (not kubecert_node.results[0].stat.exists|default(False)) or (not kubecert_node.results[1].stat.exists|default(False)) or (kubecert_node.results[1].stat.checksum|default('') != kubecert_master.files|selectattr("path", "equalto", kubecert_node.results[1].stat.path)|map(attribute="checksum")|first|default('')) -%}