---
- name: Include test vars
  include_vars: "{{ test_suite }}"

- name: Install plugin packages for "{{ test_suite }}" suite
  become: yes
  package:
      name: "{{ item.value.package[test.openstack.version |default(overcloud_version) | int]|default(item.value.package.default) }}"
      state: present
  with_dict: "{{ test_dict.plugins | default({}) }}"
  when: item.value.package is defined

- name: Clone plugin repository for "{{ test_suite }}" suite
  become: yes
  git:
      repo: "{{ item.value.repo[test.openstack.version |default(overcloud_version) | int]|default(item.value.repo.default) }}"
      dest: "{{ ansible_user_dir }}/"
      accept_hostkey: true
  retries: 3
  delay: 60
  with_dict: "{{ test_dict.plugins | default({}) }}"
  when: item.value.package is not defined

---
- name: Include test vars
  include_vars: "{{ test_suite }}"

- name: Install plugin packages for "{{ test_suite }}" suite
  become: yes
  package:
      name: "{{ item.value.package[test.openstack.version |default(overcloud_version) | int]|default(item.value.package.default) }}"
      state: present
  with_dict: "{{ test_dict.plugins | default({}) }}"
  when: item.value.package is defined

- name: Clone plugin repository for "{{ test_suite }}" suite
  become: yes
  git:
      repo: "{{ item.value.repo | default(item.value.default) }}"
      dest: "{{ ansible_user_dir }}/"
      accept_hostkey: true
  retries: 3
  delay: 60
  with_dict: "{{ test_dict.plugins | default({}) }}"
  when: item.value.package is not defined

Fix tempest plugin cloning task
Fix tempest plugin cloning task

The repo variable is now adjusted to the actual structure of
sriov test suite.

Change-Id: I58a07fe918057cda61cdb997e17d8a01fdff4bb2
