Simplify loop with optional dict
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-26 14:28:04 +02:00
parent 27e6fb0b92
commit bcb0f0f164
1 changed files with 17 additions and 15 deletions

View File

@ -181,6 +181,8 @@
- cluster.k3s.yml
tasks:
- block:
- name: Initialize tempfile
ansible.builtin.tempfile:
state: file
@ -221,7 +223,7 @@
create_namespace: yes
wait: yes
kubeconfig: "{{ kubeconfig.path }}"
values: "{{ item.values | default('omit', true) }}"
values: "{{ item.values | default({}) }}"
loop:
- name: cert-manager
ref: jetstack/cert-manager