fix: Stop network_plugin/cni dependency when include_role comes from reset role

This commit is contained in:
Jason Witkowski 2022-12-07 13:10:23 -05:00
parent 09748e80e9
commit 28cc719b7b
7 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: network_plugin/cni
when: not from_reset | default(true)

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: network_plugin/cni
when: not from_reset | default(true)

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: network_plugin/cni
when: not from_reset | default(true)

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: network_plugin/cni
when: not from_reset | default(true)

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: network_plugin/cni
when: not from_reset | default(true)

View file

@ -1,3 +1,4 @@
---
dependencies:
- role: network_plugin/cni
when: not from_reset | default(true)

View file

@ -381,6 +381,8 @@
include_role:
name: "network_plugin/{{ kube_network_plugin }}"
tasks_from: reset
vars:
from_reset: true
when:
- kube_network_plugin in ['flannel', 'cilium', 'kube-router', 'calico']
tags: