fix: Stop network_plugin/cni dependency when include_role comes from reset role
This commit is contained in:
parent
09748e80e9
commit
28cc719b7b
7 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: network_plugin/cni
|
- role: network_plugin/cni
|
||||||
|
when: not from_reset | default(true)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: network_plugin/cni
|
- role: network_plugin/cni
|
||||||
|
when: not from_reset | default(true)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: network_plugin/cni
|
- role: network_plugin/cni
|
||||||
|
when: not from_reset | default(true)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: network_plugin/cni
|
- role: network_plugin/cni
|
||||||
|
when: not from_reset | default(true)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: network_plugin/cni
|
- role: network_plugin/cni
|
||||||
|
when: not from_reset | default(true)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: network_plugin/cni
|
- role: network_plugin/cni
|
||||||
|
when: not from_reset | default(true)
|
||||||
|
|
|
@ -381,6 +381,8 @@
|
||||||
include_role:
|
include_role:
|
||||||
name: "network_plugin/{{ kube_network_plugin }}"
|
name: "network_plugin/{{ kube_network_plugin }}"
|
||||||
tasks_from: reset
|
tasks_from: reset
|
||||||
|
vars:
|
||||||
|
from_reset: true
|
||||||
when:
|
when:
|
||||||
- kube_network_plugin in ['flannel', 'cilium', 'kube-router', 'calico']
|
- kube_network_plugin in ['flannel', 'cilium', 'kube-router', 'calico']
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue