mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 11:11:15 -03:30
Rework inventory all by real groups' vars
* Leave all.yml to keep only optional vars * Store groups' specific vars by existing group names * Fix optional vars casted as mandatory (add default()) * Fix missing defaults for an optional IP var * Relink group_vars for terraform to reflect changes Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
name: "kpm"
|
||||
state: "present"
|
||||
version: "0.16.1"
|
||||
when: kpm_packages | length > 0
|
||||
when: kpm_packages|default([])| length > 0
|
||||
|
||||
- name: manage kubernetes applications
|
||||
kpm:
|
||||
@@ -14,7 +14,7 @@
|
||||
version: "{{item.version | default(omit)}}"
|
||||
variables: "{{item.variables | default(omit)}}"
|
||||
name: "{{item.name}}"
|
||||
with_items: "{{kpm_packages}}"
|
||||
with_items: "{{kpm_packages|default([])}}"
|
||||
register: kpmresults
|
||||
environment:
|
||||
PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}"
|
||||
|
||||
Reference in New Issue
Block a user