Verify if br_netfilter module exists (#1492)
This commit is contained in:
parent
3aabba7535
commit
a98b866a66
1 changed files with 8 additions and 1 deletions
|
@ -4,10 +4,17 @@
|
||||||
- include: seed.yml
|
- include: seed.yml
|
||||||
when: weave_mode_seed
|
when: weave_mode_seed
|
||||||
|
|
||||||
- name: Weave | enable br_netfilter module
|
- 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:
|
modprobe:
|
||||||
name: br_netfilter
|
name: br_netfilter
|
||||||
state: present
|
state: present
|
||||||
|
when: modinfo_br_netfilter.rc == 0
|
||||||
|
|
||||||
- name: Weave | Copy cni plugins from hyperkube
|
- 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/"
|
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/"
|
||||||
|
|
Loading…
Reference in a new issue