copr-builders: the DNS hack is still needed

Without this, it takes 5+ minutes to get the Red Hat subscription.

Revert "copr-builders: remove OSUOSL DNS hack"

This reverts commit 685ceae405.
This commit is contained in:
Pavel Raiskup 2022-02-03 07:42:18 +01:00
parent 685ceae405
commit 74d86b0011

View file

@ -8,6 +8,15 @@
- "'s390x' in lookup('env', 'RESALLOC_NAME')"
- copr_builder_fedora_version == 34
- name: drop extremely slow libvirt resolver
lineinfile:
dest: /etc/resolv.conf
regexp: 'nameserver 192.168.122.1'
state: 'absent'
when:
- prepare_base_image is not defined
- "'osuosl' in lookup('env', 'RESALLOC_NAME')"
- name: setup the hostname so we can easily identify the box
hostname: name="{{ lookup('env', 'RESALLOC_NAME') | default('unknown-builder') | replace('_', '-') }}"
when: prepare_base_image is not defined