Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion roles/ci_nmstate/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
label: "{{ item }}"

- name: Get k8s nodes
when: cifmw_openshift_kubeconfig is defined
when:
- cifmw_openshift_kubeconfig is defined
- cifmw_openshift_kubeconfig is exists
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe:
cifmw_openshift_kubeconfig | length > 0 might be better than exists.

kubernetes.core.k8s_info:
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
api_key: "{{ cifmw_openshift_token | default(omit)}}"
Expand Down Expand Up @@ -93,6 +95,7 @@
- name: Provision k8s workers with nmstate
when:
- cifmw_openshift_kubeconfig is defined
- cifmw_openshift_kubeconfig is exists
- >-
_cifmw_ci_nmstate_configs | dict2items |
selectattr('key', 'in', _cifmw_ci_nmstate_k8s_hosts) |
Expand Down
Loading