#123 fix how beakerlib enables copr repos
Merged 6 years ago by astepano. Opened 6 years ago by bgoncalv.
bgoncalv/standard-test-roles enable-copr-repo  into  master

@@ -2,17 +2,17 @@ 

  

  - delegate_to: "{{ test_runner_inventory_name }}"

    block:

-   - name: Add restraint repo for restraint-rhts on Fedora hosts

+   - name: Add restraint repo for restraint-rhts using DNF

      shell: dnf copr enable -y bpeck/restraint

      ignore_errors: True

-     when: "hostvars[test_runner_inventory_name]['is_dnf_os']"

+     when: "hostvars[test_runner_inventory_name]['is_dnf_os'] | bool"

  

-   - name: Add restraint repo for restraint-rhts on RHEL/CentOS hosts

+   - name: Add restraint repo for restraint-rhts using YUM

      block:

        - package: name=yum-plugin-copr

        - shell: yum copr -y enable bpeck/restraint

          ignore_errors: True

-     when: "hostvars[test_runner_inventory_name]['is_yum_os']"

+     when: "hostvars[test_runner_inventory_name]['is_yum_os'] | bool"

  

    - name: Install the beakerlib requirements

      package: name={{item}} state=present

no initial comment

Commit 9f379b0 fixes this pull-request

Pull-Request has been merged by astepano

6 years ago

Pull-Request has been merged by astepano

6 years ago
Metadata