move task network-environment

pull/15/head
Smaine Kahlouch 2015-11-16 22:20:41 +01:00
parent 7efaf30d36
commit 70aa68b9c7
2 changed files with 5 additions and 7 deletions

View File

@ -15,12 +15,6 @@
- reload systemd - reload systemd
- restart calico-node - 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 - name: Calico | Enable calico-node
service: name=calico-node enabled=yes state=started service: name=calico-node enabled=yes state=started

View File

@ -6,8 +6,12 @@
- include: flannel.yml - include: flannel.yml
when: kube_network_plugin == "flannel" 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 - include: calico.yml
when: kube_network_plugin == "calico" when: kube_network_plugin == "calico"
- meta: flush_handlers - meta: flush_handlers