---
- 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 }}/{{ item.value.repo | basename }}"
      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: Disable SSL verification by git
  become: yes
  shell: "git config --global http.sslVerify false"

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

Disable git ssl verification on undercloud
Disable git ssl verification on undercloud

For cloning internal repositories that require
certifications.

Change-Id: I1b203ca74a73a95b7ca51d3dbaec21d8e0e8d4ce
