---
- name: Install libguestfs-tools
  become: yes
  package:
      name: libguestfs-tools
      state: present

- name: Download tempest image
  get_url:
      dest: "~/tempest_image"
      url: "{{ test.image }}"

- name: Push repos to guest image tempest will use for testing
  command: "virt-copy-in -a ~/tempest_image /etc/yum.repos.d /etc/"

- name: Disable 'patched-rpms' yum repository in guest image
  command: "virt-customize -a ~/tempest_image --run-command \"yum-config-manager --disable patched-rpms\""

- name: Install packages in guest image tempest will use for testing
  command: "virt-customize -a ~/tempest_image --install {{ test.images.packages }} --selinux-relabel"

---
- name: Install libguestfs-tools
  become: yes
  package:
      name: libguestfs-tools
      state: present

- name: Download tempest image
  get_url:
      dest: "~/tempest_image"
      url: "{{ test.image }}"

- name: Push repos to guest image tempest will use for testing
  command: "virt-copy-in -a ~/tempest_image /etc/yum.repos.d /etc/"

- name: Disable 'patched-rpms' yum repository in guest image
  command: "virt-customize -a ~/tempest_image --run-command \"yum-config-manager --disable patched-rpms\""
  failed_when: false

- name: Install packages in guest image tempest will use for testing
  command: "virt-customize -a ~/tempest_image --install {{ test.images.packages }} --selinux-relabel"

Fix disable patched_rpms repo task in tempest plugin
Fix disable patched_rpms repo task in tempest plugin

Change-Id: I1d6b6e917bd0d5e28c6e21caf8e01d0d587d6983
