c12s-kubespray/roles/network_plugin/weave/tasks/main.yml

33 lines
947 B
YAML
Raw Normal View History

2016-02-09 16:16:16 +00:00
---
- include: pre-upgrade.yml
- include: seed.yml
when: weave_mode_seed
- name: Weave | Verify if br_netfilter module exists
shell: "modinfo br_netfilter"
register: modinfo_br_netfilter
failed_when: modinfo_br_netfilter.rc not in [0, 1]
changed_when: false
- name: Weave | Enable br_netfilter module
modprobe:
name: br_netfilter
state: present
when: modinfo_br_netfilter.rc == 0
- name: Weave | Copy cni plugins from hyperkube
command: "{{ docker_bin_dir }}/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
register: cni_task_result
until: cni_task_result.rc == 0
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
changed_when: false
tags: [hyperkube, upgrade]
- name: Weave | Create weave-net manifest
2016-02-09 16:16:16 +00:00
template:
src: weave-net.yml.j2
dest: "{{ kube_config_dir }}/weave-net.yml"
2017-01-10 14:47:39 +00:00
register: weave_manifest