From 016572ad5490dfa8c6fcd059c2a772b543c65c9a Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Fri, 9 Dec 2022 04:13:34 +0100 Subject: [PATCH] copr: prefer IPv4 on copr-fe because of timeouting OpenID login See https://github.com/fedora-copr/copr/issues/2418#issuecomment-1341394581 --- roles/copr/frontend/files/gai.conf | 5 +++++ roles/copr/frontend/tasks/main.yml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 roles/copr/frontend/files/gai.conf diff --git a/roles/copr/frontend/files/gai.conf b/roles/copr/frontend/files/gai.conf new file mode 100644 index 0000000000..8277e995d3 --- /dev/null +++ b/roles/copr/frontend/files/gai.conf @@ -0,0 +1,5 @@ +# Prefer IPv4 over IPV6 +# See https://www.youtube.com/watch?v=9qIBUt-VMds +# We need this workaround because of +# https://github.com/fedora-copr/copr/issues/2418#issuecomment-1341394581 +precedence ::ffff:0:0/96 100 diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index d1cfa93710..f661a347c6 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -224,3 +224,8 @@ vars: api_key: "{{ copr_uptimerobot_api_key_ro | default('not-configured') }}" tags: copr_cdn + +- name: install gai.conf + copy: src=gai.conf dest=/etc + notify: + - reload httpd