Skip to content

Commit

Permalink
Fix error: with_dict expects a dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsushita committed Mar 3, 2021
1 parent bf0eb1c commit 7c435d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ansible/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c435d2

Please sign in to comment.