[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:
|
||||
- site-defaults.cfg
|
||||
|
||||
- name: "fix mock configs to use nearest mirror"
|
||||
# Affects only some fedora configs ... repo urls are tricky. TODO: add for epel
|
||||
command: "ls -1 /etc/mock/fedora\*.cfg"
|
||||
register: mock_fedora_configs_to_patch
|
||||
# TODO: file globs or ansible escaping works strange, now using predefined file location
|
||||
#- name: "fix mock configs to use nearest mirror"
|
||||
# # Affects only some fedora configs ... repo urls are tricky. TODO: add for epel
|
||||
# shell: "ls -1 /etc/mock/fedora*.cfg"
|
||||
# register: mock_fedora_configs_to_patch
|
||||
|
||||
- name: "patch mock.cfg"
|
||||
replace: >
|
||||
dest={{ item }}
|
||||
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/'
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue