copr/base: do all the networking magic only on Fedora

On copr-pulp-dev the connection is named `System eth0`. I don't have
time to debug it right now and we IMHO don't need the networking magic
right from the start.
This commit is contained in:
Jakub Kadlcik 2023-08-20 19:40:39 +02:00
parent dd31fcceea
commit 4889f42f5e

View file

@ -93,11 +93,15 @@
- name: disable offloading - name: disable offloading
command: ethtool -K eth0 tso off gro off gso off command: ethtool -K eth0 tso off gro off gso off
when: offloading.rc == 0 when:
- offloading.rc == 0
- ansible_distribution == 'Fedora'
- name: disable offloading (persitently) - name: disable offloading (persitently)
shell: "nmcli con modify 'cloud-init eth0' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off" shell: "nmcli con modify 'cloud-init eth0' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off"
when: offloading.rc == 0 when:
- offloading.rc == 0
- ansible_distribution == 'Fedora'
tags: tags:
- config - config
@ -106,7 +110,9 @@
register: ipv6_config_check register: ipv6_config_check
failed_when: false failed_when: false
changed_when: ipv6_config_check.rc == 1 changed_when: ipv6_config_check.rc == 1
when: aws_ipv6_addr is defined when:
- aws_ipv6_addr is defined
- ansible_distribution == 'Fedora'
tags: ipv6_config tags: ipv6_config
- name: setup ipv6 networking - name: setup ipv6 networking
@ -116,6 +122,7 @@
when: when:
- aws_ipv6_addr is defined - aws_ipv6_addr is defined
- ipv6_config_check.changed - ipv6_config_check.changed
- ansible_distribution == 'Fedora'
tags: ipv6_config tags: ipv6_config
- name: install nrpe checks - name: install nrpe checks