From 4889f42f5e8dd2aa6c85690fd2892f094e8b4dbf Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Sun, 20 Aug 2023 19:40:39 +0200 Subject: [PATCH] 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. --- roles/copr/base/tasks/main.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/roles/copr/base/tasks/main.yml b/roles/copr/base/tasks/main.yml index 86f3bb6870..0e76c96747 100644 --- a/roles/copr/base/tasks/main.yml +++ b/roles/copr/base/tasks/main.yml @@ -93,11 +93,15 @@ - name: disable offloading 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) 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: - config @@ -106,7 +110,9 @@ register: ipv6_config_check failed_when: false 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 - name: setup ipv6 networking @@ -116,6 +122,7 @@ when: - aws_ipv6_addr is defined - ipv6_config_check.changed + - ansible_distribution == 'Fedora' tags: ipv6_config - name: install nrpe checks