mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
copr-pulp: setup ipv6
This commit is contained in:
@@ -12,3 +12,5 @@ additional_known_hosts_cleanup:
|
||||
- copr-be-dev-temp.aws.fedoraproject.org
|
||||
copr-be.aws.fedoraproject.org:
|
||||
- copr-be-temp.aws.fedoraproject.org
|
||||
|
||||
aws_ipv6_con: "cloud-init eth0"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
---
|
||||
services_disabled: true
|
||||
aws_ipv6_addr: "2600:1f18:8ee:ae00:c4b7:de1a:4d13:e5a4"
|
||||
aws_ipv6_addr: "2600:1f18:8ee:ae00:c607:4520:249f:6cc8"
|
||||
|
||||
@@ -18,3 +18,5 @@ tcp_ports: [
|
||||
# PULP API
|
||||
24817,
|
||||
]
|
||||
|
||||
aws_ipv6_con: "System eth0"
|
||||
|
||||
@@ -14,3 +14,5 @@ nagios_Can_Connect: false
|
||||
public_ip: TODO
|
||||
swap_file_path: /swap
|
||||
swap_file_size_mb: 8096
|
||||
|
||||
aws_ipv6_con: "System eth0"
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
- 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"
|
||||
shell: "nmcli con modify '{{ aws_ipv6_con }}' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off"
|
||||
when:
|
||||
- offloading.rc == 0
|
||||
- ansible_distribution == 'Fedora'
|
||||
@@ -108,7 +108,7 @@
|
||||
- config
|
||||
|
||||
- name: check we have the needed ipv6
|
||||
shell: "nmcli con show 'cloud-init eth0' | 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
|
||||
failed_when: false
|
||||
changed_when: ipv6_config_check.rc == 1
|
||||
|
||||
Reference in New Issue
Block a user