| |
@@ -12,16 +12,14 @@
|
| |
delegate_facts: True
|
| |
|
| |
- name: Add restraint repo for restraint-rhts on Fedora hosts
|
| |
- get_url:
|
| |
- url: https://copr.fedorainfracloud.org/coprs/bpeck/restraint/repo/fedora-{{ansible_distribution_major_version}}/bpeck-restraint-fedora-{{ansible_distribution_major_version}}.repo
|
| |
- dest: /etc/yum.repos.d/restraint.repo
|
| |
+ shell: dnf copr enable -y bpeck/restraint
|
| |
when: ansible_distribution == 'Fedora'
|
| |
|
| |
- name: Add restraint repo for restraint-rhts on RHEL/CentOS hosts
|
| |
- get_url:
|
| |
- url: https://copr.fedorainfracloud.org/coprs/bpeck/restraint/repo/epel-7/bpeck-restraint-epel-7.repo
|
| |
- dest: /etc/yum.repos.d/restraint.repo
|
| |
- when: ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
| |
+ block:
|
| |
+ - package: name=yum-plugin-copr
|
| |
+ - shell: yum copr -y enable bpeck/restraint
|
| |
+ when: "[ansible_distribution] | intersect(['RedHat', 'CentOS'])"
|
| |
|
| |
- name: Install the beakerlib requirements
|
| |
package: name={{item}} state=latest
|
| |
This PR fixes: https://pagure.io/standard-test-roles/issue/68
provides correct URL to repo file for Fedora Rawhide.
Signed-off-by: Andrei Stepanov astepano@redhat.com