Browse Source

move task network-environment

pull/15/head
Smaine Kahlouch 9 years ago
parent
commit
70aa68b9c7
2 changed files with 5 additions and 7 deletions
  1. 6
      roles/network_plugin/tasks/calico.yml
  2. 6
      roles/network_plugin/tasks/main.yml

6
roles/network_plugin/tasks/calico.yml

@ -15,12 +15,6 @@
- reload systemd
- restart calico-node
- name: Calico | Write network-environment
template: src=calico/network-environment.j2 dest=/etc/network-environment mode=u+x
notify:
- reload systemd
- restart calico-node
- name: Calico | Enable calico-node
service: name=calico-node enabled=yes state=started

6
roles/network_plugin/tasks/main.yml

@ -6,8 +6,12 @@
- 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"
- meta: flush_handlers
Loading…
Cancel
Save