diff --git a/inventory/host_vars/retrace01.qa.fedoraproject.org b/inventory/host_vars/retrace01.qa.fedoraproject.org index 03e4820e59..96426db652 100644 --- a/inventory/host_vars/retrace01.qa.fedoraproject.org +++ b/inventory/host_vars/retrace01.qa.fedoraproject.org @@ -14,3 +14,15 @@ nagios_Check_Services: dhcpd: false httpd: false swap: false + +faf_repos: + - { name: 'fedora-27-updates-testing-source', + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/testing/27/SRPMS/', + arch: 'source' + opsys: 'Fedora 27' + } + - { name: 'fedora-27-updates-source' + url: 'http://download01.phx2.fedoraproject.org/pub/fedora/linux/updates/27/SRPMS/' + arch: 'source' + opsys: 'Fedora 27' + } diff --git a/roles/abrt/faf-local/tasks/main.yml b/roles/abrt/faf-local/tasks/main.yml index f7ff81ea93..9443bf4d02 100644 --- a/roles/abrt/faf-local/tasks/main.yml +++ b/roles/abrt/faf-local/tasks/main.yml @@ -61,5 +61,23 @@ line: ' MORE_SATYR = "https://github.com/abrt/satyr/"' notify: restart httpd +- name: add repositories + command: faf repoadd {{ item.name }} yum {{ item.url }} + become: yes + become_user: faf + ignore_errors: yes + when: not devel + tags: add_repo + with_items: "{{ faf_repos }}" + +- name: repoassign repositories + command: faf repoassign {{ item.name }} {{ item.opsys }} {{ item.arch }} + become: yes + become_user: faf + ignore_errors: yes + when: not devel + tags: add_repo + with_items: "{{ faf_repos }}" + - include: cron.yml tags: cron