From 58acbe7cafd07882900ccad9b2221a0707a0b07b Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Thu, 30 Mar 2017 22:15:52 +0200 Subject: [PATCH] Fix multiline when condition in sync_certs task Folded style in multiline 'when' condition causes error with unexpected ident. Changing it to literal style should fix the issue. Closes #1190 --- roles/etcd/tasks/check_certs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/etcd/tasks/check_certs.yml b/roles/etcd/tasks/check_certs.yml index 16b7d7c28..fe96ea01c 100644 --- a/roles/etcd/tasks/check_certs.yml +++ b/roles/etcd/tasks/check_certs.yml @@ -57,7 +57,7 @@ - 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 (not etcdcert_node.results[0].stat.exists|default(False)) or