Skip to content
Snippets Groups Projects
Unverified Commit 1968db9a authored by Not Darko's avatar Not Darko Committed by GitHub
Browse files

fix: skip multus when not defined (#10934)

fix task failure:
TASK [kubernetes-apps/network_plugin/multus : Multus | Start resources] ************************************************
fatal: [hfal12k8n1 -> {{ groups['kube_control_plane'][0] }}]: FAILED! => {"msg": "Error in jmespath.search in json_query filter plugin:\n'ansible.vars.hostvars.HostVarsVars object' has no attribute 'multus_manifest_2'"}
parent cc03ca62
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
state: "latest" state: "latest"
delegate_to: "{{ groups['kube_control_plane'][0] }}" delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true run_once: true
with_items: "{{ multus_manifest_1.results + (multus_nodes_list | map('extract', hostvars, 'multus_manifest_2') | list | json_query('[].results')) }}" with_items: "{{ (multus_manifest_1.results | default([])) + (multus_nodes_list | map('extract', hostvars, 'multus_manifest_2.results') | default([]) | list) }}"
loop_control: loop_control:
label: "{{ item.item.name if item != None else 'skipped' }}" label: "{{ item.item.name if item != None else 'skipped' }}"
vars: vars:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment