blob: 2b9be4741d8920b12eda8b07b0468bbb9dafb24d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
---
- name: fetch default link options for network interfaces
slurp:
src: /usr/lib/systemd/network/99-default.link
register: base_systemd_default_link_unit
- name: disable TSO (intel nic stability fix)
vars:
default_link_options: "{{ (base_systemd_default_link_unit.content | b64decode | from_ini)['Link'] }}"
copy:
content: |
[Match]
MACAddress={{ ansible_default_ipv4.macaddress }}
[Link]
{% for name, value in default_link_options.items() | sort(attribute='0') %}
{{ name }}={{ value }}
{% endfor %}
TCPSegmentationOffload=false
GenericSegmentationOffload=false
GenericReceiveOffload=false
dest: /etc/systemd/network/00-disable-offloading.link
|