Browse Source

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
pull/1194/head
Aleksandr Didenko 8 years ago
parent
commit
58acbe7caf
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/etcd/tasks/check_certs.yml

2
roles/etcd/tasks/check_certs.yml

@ -57,7 +57,7 @@
- name: "Check_certs | Set 'sync_certs' to true" - name: "Check_certs | Set 'sync_certs' to true"
set_fact: set_fact:
sync_certs: true sync_certs: true
when: >-
when: |-
{%- set certs = {'sync': False} -%} {%- set certs = {'sync': False} -%}
{% if gen_node_certs[inventory_hostname] or {% if gen_node_certs[inventory_hostname] or
(not etcdcert_node.results[0].stat.exists|default(False)) or (not etcdcert_node.results[0].stat.exists|default(False)) or

Loading…
Cancel
Save