mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 19:21:12 -03:30
Move inline defaults to defaults/main.yml (#12926)
This commit is contained in:
2
roles/kubernetes/node-taint/defaults/main.yml
Normal file
2
roles/kubernetes/node-taint/defaults/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
node_taints: []
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
- name: Populate inventory node taint
|
||||
set_fact:
|
||||
inventory_node_taints: "{{ inventory_node_taints + ['%s' | format(item)] }}"
|
||||
loop: "{{ node_taints | d([]) }}"
|
||||
inventory_node_taints: "{{ inventory_node_taints + node_taints }}"
|
||||
when:
|
||||
- node_taints is defined
|
||||
- node_taints is not string
|
||||
- node_taints is not mapping
|
||||
- node_taints is iterable
|
||||
|
||||
- debug: # noqa name[missing]
|
||||
var: role_node_taints
|
||||
- debug: # noqa name[missing]
|
||||
|
||||
Reference in New Issue
Block a user