retrace: allow more urls for "faf repoadd"

this will allows us to add two urls just after forking:
one with prerelease url, and one with final one
when the release of Fedora happens FAF will automagically start using the correct one
as FAF ignore the url which does not work/exists
This commit is contained in:
Miroslav Suchý 2018-11-27 09:12:56 +01:00
parent 731255e327
commit 6f365cefa5
2 changed files with 43 additions and 43 deletions

View file

@ -22,212 +22,212 @@ sar_output_file: faf.json
faf_repos: faf_repos:
- { name: 'fedora-28-updates-testing-source', - { name: 'fedora-28-updates-testing-source',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/SRPMS/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/SRPMS/'],
arch: 'src', arch: 'src',
opsys: 'Fedora 28' opsys: 'Fedora 28'
} }
- { name: 'fedora-28-updates-source', - { name: 'fedora-28-updates-source',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/SRPMS/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/SRPMS/'],
arch: 'src', arch: 'src',
opsys: 'Fedora 28' opsys: 'Fedora 28'
} }
- { name: 'fedora-28-armhfp-debug', - { name: 'fedora-28-armhfp-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/armhfp/debug/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/armhfp/debug/tree/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-armhfp-testing-debug', - { name: 'fedora-28-armhfp-testing-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/armhfp/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/armhfp/debug/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-armhfp-testing', - { name: 'fedora-28-armhfp-testing',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/armhfp/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/armhfp/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-armhfp-updates-debug', - { name: 'fedora-28-armhfp-updates-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/armhfp/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/armhfp/debug/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-armhfp-updates', - { name: 'fedora-28-armhfp-updates',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/armhfp/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/armhfp/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-armhfp', - { name: 'fedora-28-armhfp',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/armhfp/os/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/armhfp/os/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-i386-debug', - { name: 'fedora-28-i386-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/releases/28/Everything/i386/debug/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/releases/28/Everything/i386/debug/tree/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-i386-testing-debug', - { name: 'fedora-28-i386-testing-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/28/Everything/i386/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/28/Everything/i386/debug/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-i386-testing', - { name: 'fedora-28-i386-testing',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/28/Everything/i386/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/28/Everything/i386/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-i386-updates-debug', - { name: 'fedora-28-i386-updates-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/28/Everything/i386/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/28/Everything/i386/debug/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-i386-updates', - { name: 'fedora-28-i386-updates',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/28/Everything/i386/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/28/Everything/i386/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-i386', - { name: 'fedora-28-i386',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/releases/28/Everything/i386/os/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/releases/28/Everything/i386/os/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-source', - { name: 'fedora-28-source',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/source/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/source/tree/'],
arch: 'src', arch: 'src',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-x86_64', - { name: 'fedora-28-x86_64',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/x86_64/os/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/x86_64/os/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-x86_64-debug', - { name: 'fedora-28-x86_64-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/x86_64/debug/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/releases/28/Everything/x86_64/debug/tree/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-x86_64-testing-debug', - { name: 'fedora-28-x86_64-testing-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/x86_64/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/x86_64/debug/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-x86_64-testing', - { name: 'fedora-28-x86_64-testing',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/x86_64/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/28/Everything/x86_64/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-x86_64-updates-debug', - { name: 'fedora-28-x86_64-updates-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/debug/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-28-x86_64-updates', - { name: 'fedora-28-x86_64-updates',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 28', opsys: 'Fedora 28',
} }
- { name: 'fedora-29-updates-testing-source', - { name: 'fedora-29-updates-testing-source',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/SRPMS/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/SRPMS/'],
arch: 'src', arch: 'src',
opsys: 'Fedora 29' opsys: 'Fedora 29'
} }
- { name: 'fedora-29-updates-source', - { name: 'fedora-29-updates-source',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/SRPMS/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/SRPMS/'],
arch: 'src', arch: 'src',
opsys: 'Fedora 29' opsys: 'Fedora 29'
} }
- { name: 'fedora-29-armhfp-debug', - { name: 'fedora-29-armhfp-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/armhfp/debug/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/armhfp/debug/tree/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-armhfp-testing-debug', - { name: 'fedora-29-armhfp-testing-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/armhfp/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/armhfp/debug/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-armhfp-testing', - { name: 'fedora-29-armhfp-testing',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/armhfp/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/armhfp/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-armhfp-updates-debug', - { name: 'fedora-29-armhfp-updates-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/armhfp/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/armhfp/debug/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-armhfp-updates', - { name: 'fedora-29-armhfp-updates',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/armhfp/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/armhfp/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-armhfp', - { name: 'fedora-29-armhfp',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/armhfp/os/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/armhfp/os/'],
arch: 'armv7hl', arch: 'armv7hl',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-i386-debug', - { name: 'fedora-29-i386-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/development/29/Everything/i386/debug/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/development/29/Everything/i386/debug/tree/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-i386-testing-debug', - { name: 'fedora-29-i386-testing-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/29/Everything/i386/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/29/Everything/i386/debug/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-i386-testing', - { name: 'fedora-29-i386-testing',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/29/Everything/i386/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/29/Everything/i386/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-i386-updates-debug', - { name: 'fedora-29-i386-updates-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/29/Everything/i386/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/29/Everything/i386/debug/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-i386-updates', - { name: 'fedora-29-i386-updates',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/29/Everything/i386/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/29/Everything/i386/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-i386', - { name: 'fedora-29-i386',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/development/29/Everything/i386/os/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora-secondary/development/29/Everything/i386/os/'],
arch: 'i386', arch: 'i386',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-source', - { name: 'fedora-29-source',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/source/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/source/tree/'],
arch: 'src', arch: 'src',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-x86_64', - { name: 'fedora-29-x86_64',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/x86_64/os/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/x86_64/os/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-x86_64-debug', - { name: 'fedora-29-x86_64-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/x86_64/debug/tree/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/29/Everything/x86_64/debug/tree/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-x86_64-testing-debug', - { name: 'fedora-29-x86_64-testing-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/x86_64/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/x86_64/debug/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-x86_64-testing', - { name: 'fedora-29-x86_64-testing',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/x86_64/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/29/Everything/x86_64/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-x86_64-updates-debug', - { name: 'fedora-29-x86_64-updates-debug',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/debug/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/debug/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }
- { name: 'fedora-29-x86_64-updates', - { name: 'fedora-29-x86_64-updates',
url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/', url: ['http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/'],
arch: 'x86_64', arch: 'x86_64',
opsys: 'Fedora 29', opsys: 'Fedora 29',
} }

View file

@ -1,7 +1,7 @@
--- ---
# the magic with ! is that it return exit code 1 if 'already defined' is not present in output # the magic with ! is that it return exit code 1 if 'already defined' is not present in output
- name: add repositories - name: add repositories
shell: ! faf repoadd --nogpgcheck "{{ item.name }}" yum "{{ item.url }}" 2>&1 | grep 'already defined' shell: ! faf repoadd --nogpgcheck "{{ item.name }}" yum "{{ item.url | join('" "') }}" 2>&1 | grep 'already defined'
become: yes become: yes
become_user: faf become_user: faf
ignore_errors: yes ignore_errors: yes