2019-06-28 07:35:38 +00:00
|
|
|
---
|
|
|
|
- name: Macvlan | restart network
|
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- Macvlan | reload network
|
2019-12-05 15:24:32 +00:00
|
|
|
when: not ansible_os_family in ["CoreOS", "Coreos", "Container Linux by CoreOS"]
|
2019-06-28 07:35:38 +00:00
|
|
|
|
|
|
|
- name: Macvlan | reload network
|
|
|
|
service:
|
|
|
|
name: >-
|
|
|
|
{% if ansible_os_family == "RedHat" -%}
|
|
|
|
network
|
|
|
|
{%- elif ansible_distribution == "Ubuntu" and ansible_distribution_release == "bionic" -%}
|
|
|
|
systemd-networkd
|
|
|
|
{%- elif ansible_os_family == "Debian" -%}
|
|
|
|
networking
|
|
|
|
{%- endif %}
|
|
|
|
state: restarted
|
2019-12-05 15:24:32 +00:00
|
|
|
when: not ansible_os_family in ["CoreOS", "Coreos", "Container Linux by CoreOS"] and kube_network_plugin not in ['canal', 'calico']
|