From 7c435d206d348f54718bf330b354af5b5c9f1851 Mon Sep 17 00:00:00 2001 From: Jun Matsushita Date: Thu, 4 Feb 2021 11:01:25 +0100 Subject: [PATCH] Fix error: with_dict expects a dict --- ansible/kubernetes.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/kubernetes.yml b/ansible/kubernetes.yml index c31de4795f..aecfc114be 100644 --- a/ansible/kubernetes.yml +++ b/ansible/kubernetes.yml @@ -10,7 +10,6 @@ tasks: - name: Annotate nodes command: "kubectl annotate node --overwrite {{ inventory_hostname }} {{ item.key }}={{ item.value }}" - when: node_annotations is defined - with_dict: node_annotations + with_dict: node_annotations | default({}) - import_playbook: kubernetes_logging.yml