[copr][backend] bug in provision build pb
This commit is contained in:
parent
d5784d6eb8
commit
e992281122
1 changed files with 12 additions and 5 deletions
|
@ -35,17 +35,24 @@
|
||||||
with_items:
|
with_items:
|
||||||
- site-defaults.cfg
|
- site-defaults.cfg
|
||||||
|
|
||||||
- name: "fix mock configs to use nearest mirror"
|
# TODO: file globs or ansible escaping works strange, now using predefined file location
|
||||||
# Affects only some fedora configs ... repo urls are tricky. TODO: add for epel
|
#- name: "fix mock configs to use nearest mirror"
|
||||||
command: "ls -1 /etc/mock/fedora\*.cfg"
|
# # Affects only some fedora configs ... repo urls are tricky. TODO: add for epel
|
||||||
register: mock_fedora_configs_to_patch
|
# shell: "ls -1 /etc/mock/fedora*.cfg"
|
||||||
|
# register: mock_fedora_configs_to_patch
|
||||||
|
|
||||||
- name: "patch mock.cfg"
|
- name: "patch mock.cfg"
|
||||||
replace: >
|
replace: >
|
||||||
dest={{ item }}
|
dest={{ item }}
|
||||||
regexp='^metalink=https://mirrors.fedoraproject.org/metalink\?repo=updates-released-f\$releasever&arch=\$basearch'
|
regexp='^metalink=https://mirrors.fedoraproject.org/metalink\?repo=updates-released-f\$releasever&arch=\$basearch'
|
||||||
replace='baseurl=http://infrastructure.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/'
|
replace='baseurl=http://infrastructure.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/'
|
||||||
with_items: mock_fedora_configs_to_patch.stdout_lines
|
with_items: #mock_fedora_configs_to_patch.stdout_lines
|
||||||
|
- /etc/mock/fedora-20-i386.cfg
|
||||||
|
- /etc/mock/fedora-20-x86_64.cfg
|
||||||
|
- /etc/mock/fedora-21-i386.cfg
|
||||||
|
- /etc/mock/fedora-21-x86_64.cfg
|
||||||
|
- /etc/mock/fedora-22-i386.cfg
|
||||||
|
- /etc/mock/fedora-22-x86_64.cfg
|
||||||
|
|
||||||
|
|
||||||
# ansible doesn't support simultaneously usage of async and with_* options
|
# ansible doesn't support simultaneously usage of async and with_* options
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue