copr: avoid the ipv6/offloading kludges

Neither of those survives reboot, yet network seems to work.
This commit is contained in:
Pavel Raiskup 2024-11-29 20:22:42 +01:00
parent a209069d03
commit e17564484e

View file

@ -86,44 +86,44 @@
when: when:
- "'pulp' not in inventory_hostname" - "'pulp' not in inventory_hostname"
- name: check offloading # - name: check offloading
shell: "ethtool -k ens5 | 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 # register: offloading
failed_when: offloading.rc == 2 # failed_when: offloading.rc == 2
changed_when: "1 != 1" # changed_when: "1 != 1"
check_mode: no # check_mode: no
#
- name: disable offloading # - name: disable offloading
command: ethtool -K ens5 tso off gro off gso off # command: ethtool -K ens5 tso off gro off gso off
when: # when:
- offloading.rc == 0 # - offloading.rc == 0
- ansible_distribution == 'Fedora' # - ansible_distribution == 'Fedora'
#
- name: disable offloading (persitently) # - name: disable offloading (persitently)
shell: "nmcli con modify '{{ aws_ipv6_con }}' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off" # shell: "nmcli con modify '{{ aws_ipv6_con }}' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off"
when: # when:
- offloading.rc == 0 # - offloading.rc == 0
- ansible_distribution == 'Fedora' # - ansible_distribution == 'Fedora'
tags: # tags:
- config # - config
#
- name: check we have the needed ipv6 # - name: check we have the needed ipv6
shell: "nmcli con show '{{ aws_ipv6_con }}' | grep ipv6.addresses | grep {{ aws_ipv6_addr }}" # shell: "nmcli con show '{{ aws_ipv6_con }}' | grep ipv6.addresses | grep {{ aws_ipv6_addr }}"
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: # when:
- aws_ipv6_addr is defined # - aws_ipv6_addr is defined
tags: ipv6_config # tags: ipv6_config
#
- name: setup ipv6 networking # - name: setup ipv6 networking
shell: | # shell: |
nmcli con modify '{{ aws_ipv6_con }}' ipv6.method auto ipv6.may-fail yes ipv6.never-default no ipv6.addresses '{{ aws_ipv6_addr }}' # nmcli con modify '{{ aws_ipv6_con }}' ipv6.method auto ipv6.may-fail yes ipv6.never-default no ipv6.addresses '{{ aws_ipv6_addr }}'
nmcli con up '{{ aws_ipv6_con }}' # nmcli con up '{{ aws_ipv6_con }}'
when: # when:
- aws_ipv6_addr is defined # - aws_ipv6_addr is defined
- ipv6_config_check.changed # - ipv6_config_check.changed
tags: ipv6_config # tags: ipv6_config
- name: install nrpe checks - name: install nrpe checks
template: src=copr_nrpe.cfg template: src=copr_nrpe.cfg