mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 19:51:15 -03:30
Configure network-environment with a single template
This commit is contained in:
@@ -44,10 +44,6 @@
|
||||
run_once: true
|
||||
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||
|
||||
- name: Write network-environment
|
||||
template: src=flannel/network-environment.j2 dest=/etc/network-environment mode=u+x
|
||||
notify: restart flannel
|
||||
|
||||
- name: Launch Flannel
|
||||
service: name=flannel state=started enabled=yes
|
||||
notify:
|
||||
|
||||
@@ -4,13 +4,12 @@
|
||||
when: ( kube_network_plugin is defined and kube_network_plugin == "calico" and kube_network_plugin == "flannel" ) or
|
||||
kube_network_plugin is not defined
|
||||
|
||||
- name: Write network-environment
|
||||
template: src=network-environment.j2 dest=/etc/network-environment mode=u+x
|
||||
|
||||
- include: flannel.yml
|
||||
when: kube_network_plugin == "flannel"
|
||||
|
||||
- name: Calico | Write network-environment
|
||||
template: src=calico/network-environment.j2 dest=/etc/network-environment mode=u+x
|
||||
when: kube_network_plugin == "calico"
|
||||
|
||||
- include: calico.yml
|
||||
when: kube_network_plugin == "calico"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user