Simplify loop with optional dict
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
27e6fb0b92
commit
bcb0f0f164
@ -181,6 +181,8 @@
|
|||||||
- cluster.k3s.yml
|
- cluster.k3s.yml
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
- block:
|
||||||
|
|
||||||
- name: Initialize tempfile
|
- name: Initialize tempfile
|
||||||
ansible.builtin.tempfile:
|
ansible.builtin.tempfile:
|
||||||
state: file
|
state: file
|
||||||
@ -221,7 +223,7 @@
|
|||||||
create_namespace: yes
|
create_namespace: yes
|
||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values: "{{ item.values | default('omit', true) }}"
|
values: "{{ item.values | default({}) }}"
|
||||||
loop:
|
loop:
|
||||||
- name: cert-manager
|
- name: cert-manager
|
||||||
ref: jetstack/cert-manager
|
ref: jetstack/cert-manager
|
||||||
|
Loading…
Reference in New Issue
Block a user