From 3705a2391521a40d0ac9f9b286882fa1dc6c40cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 9 Oct 2017 12:44:44 +0200 Subject: [PATCH] retrace: add all f27 repos --- .../host_vars/retrace01.qa.fedoraproject.org | 95 +++++++++++++++++++ roles/abrt/faf-local/tasks/main.yml | 6 +- 2 files changed, 98 insertions(+), 3 deletions(-) diff --git a/inventory/host_vars/retrace01.qa.fedoraproject.org b/inventory/host_vars/retrace01.qa.fedoraproject.org index 6f1b34724c..077a94cf8f 100644 --- a/inventory/host_vars/retrace01.qa.fedoraproject.org +++ b/inventory/host_vars/retrace01.qa.fedoraproject.org @@ -26,3 +26,98 @@ faf_repos: arch: 'source', opsys: 'Fedora 27' } + - { name: 'fedora-27-armhfp-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/27/Everything/armhfp/debug/tree/', + arch: 'armhfp', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-armhfp-testing-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/27/armhfp/debug/', + arch: 'armhfp', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-armhfp-testing', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/27/armhfp/', + arch: 'armhfp', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-armhfp-updates-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/27/armhfp/debug/', + arch: 'armhfp', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-armhfp-updates', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/27/armhfp/', + arch: 'armhfp', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-armhfp', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/27/Everything/armhfp/os/' + arch: 'armhfp', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-i386-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/development/27/Everything/i386/debug/tree/', + arch: 'i386', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-i386-testing-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/27/i386/debug/', + arch: 'i386', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-i386-testing', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/testing/27/i386/', + arch: 'i386', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-i386-updates-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/27/i386/debug/', + arch: 'i386', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-i386-updates', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/updates/27/i386/', + arch: 'i386', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-i386', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora-secondary/development/27/Everything/i386/os/', + arch: 'i386', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-source', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/27/Everything/source/tree/', + arch: 'source', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-x86_64', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/27/Everything/x86_64/os/', + arch: 'x86_64', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-x86_64-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/development/27/Everything/x86_64/debug/tree/', + arch: 'x86_64', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-x86_64-testing-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/27/x86_64/debug/', + arch: 'x86_64', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-x86_64-testing', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/27/x86_64/', + arch: 'x86_64', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-x86_64-updates-debug', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/27/x86_64/debug/', + arch: 'x86_64', + opsys: 'Fedora 27', + } + - { name: 'fedora-27-x86_64-updates', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/27/x86_64/', + arch: 'x86_64', + opsys: 'Fedora 27', + } diff --git a/roles/abrt/faf-local/tasks/main.yml b/roles/abrt/faf-local/tasks/main.yml index 434cb97eb9..3cd5ddffa4 100644 --- a/roles/abrt/faf-local/tasks/main.yml +++ b/roles/abrt/faf-local/tasks/main.yml @@ -61,9 +61,9 @@ line: ' MORE_SATYR = "https://github.com/abrt/satyr/"' notify: restart httpd -# the magic with ! is that it return exit code 1 if ERROR is present in output +# the magic with ! is that it return exit code 1 if 'already defined' is not present in output - name: add repositories - command: ! faf repoadd "{{ item.name }}" yum "{{ item.url }}" | grep ERROR + shell: ! faf repoadd "{{ item.name }}" yum "{{ item.url }}" 2>&1 | grep 'already defined' become: yes become_user: faf ignore_errors: yes @@ -72,7 +72,7 @@ with_items: "{{ faf_repos }}" - name: repoassign repositories - command: ! faf repoassign "{{ item.name }}" "{{ item.opsys }}" "{{ item.arch }}" | grep ERROR + shell: ! faf repoassign "{{ item.name }}" "{{ item.opsys }}" "{{ item.arch }}" 2>&1 | grep 'already defined' become: yes become_user: faf ignore_errors: yes