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