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
This commit is contained in:
Aleksandr Didenko 2017-03-30 22:15:52 +02:00
parent 986a89be66
commit 0762afd390

View file

@ -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