2019-06-28 15:35:38 +08:00
|
|
|
---
|
|
|
|
- name: Macvlan | reload network
|
|
|
|
service:
|
2023-07-05 11:36:54 +08:00
|
|
|
# noqa: jinja[spacing]
|
2019-06-28 15:35:38 +08:00
|
|
|
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
|
2023-05-18 18:40:33 +08:00
|
|
|
when: not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"] and kube_network_plugin not in ['calico']
|
2023-11-08 19:28:30 +08:00
|
|
|
listen: Macvlan | restart network
|