Skip to content
Snippets Groups Projects
Commit d8bebcd2 authored by Paul Czarkowski's avatar Paul Czarkowski
Browse files

Fix issue with check_certs playbook

check_certs task "Check_certs | Set 'sync_certs' to true" was failing
due to the dict not existing, this sets defaults that allows the
correct behavior of the conditionals.
parent f576d70b
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
when: >- when: >-
{%- set certs = {'sync': False} -%} {%- set certs = {'sync': False} -%}
{%- for server in play_hosts {%- for server in play_hosts
if (not hostvars[server].kubecert.stat.exists) or if (not hostvars[server].kubecert.stat.exists|default(False)) or
(hostvars[server].kubecert.stat.checksum != kubecert_master.stat.checksum|default('')) -%} (hostvars[server].kubecert.stat.checksum|default('') != kubecert_master.stat.checksum|default('')) -%}
{%- set _ = certs.update({'sync': True}) -%} {%- set _ = certs.update({'sync': True}) -%}
{%- endfor -%} {%- endfor -%}
{{ certs.sync }} {{ certs.sync }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment