copr: the eth0 device is now called ens5
At first, I wanted to fix the current name and change it back to eth0 but it seems this is a desired naming from now on and we should probably adopt it. https://fedoraproject.org/wiki/Changes/EnableConsistentDeviceNamingCloud This commit will probably break playbooks for the production instances but I cannot do a "if devel" condition here. So hopefully, we will be fine.
This commit is contained in:
parent
01dc9ec053
commit
67cc0600fc
2 changed files with 3 additions and 3 deletions
|
@ -13,4 +13,4 @@ additional_known_hosts_cleanup:
|
|||
copr-be.aws.fedoraproject.org:
|
||||
- copr-be-temp.aws.fedoraproject.org
|
||||
|
||||
aws_ipv6_con: "cloud-init eth0"
|
||||
aws_ipv6_con: "cloud-init ens5"
|
||||
|
|
|
@ -88,14 +88,14 @@
|
|||
# - "'pulp' not in inventory_hostname"
|
||||
|
||||
- name: check offloading
|
||||
shell: "ethtool -k eth0 | egrep -q 'tcp-segmentation-offload: on|generic-receive-offload: on|generic-segmentation-offload: on'"
|
||||
shell: "ethtool -k ens5 | egrep -q 'tcp-segmentation-offload: on|generic-receive-offload: on|generic-segmentation-offload: on'"
|
||||
register: offloading
|
||||
failed_when: offloading.rc == 2
|
||||
changed_when: "1 != 1"
|
||||
check_mode: no
|
||||
|
||||
- name: disable offloading
|
||||
command: ethtool -K eth0 tso off gro off gso off
|
||||
command: ethtool -K ens5 tso off gro off gso off
|
||||
when:
|
||||
- offloading.rc == 0
|
||||
- ansible_distribution == 'Fedora'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue