Merge "Cleanup quickstart-extras-standalone playbook"

This commit is contained in:
Zuul 2020-08-22 01:06:32 +00:00 committed by Gerrit Code Review
commit 1728c577e2
1 changed files with 0 additions and 32 deletions

View File

@ -44,37 +44,9 @@
gather_facts: false
roles:
- {role: validate-services, when: validate_services|default(false)|bool}
- {role: validate-tempest, when: run_tempest|bool}
tags:
- standalone
- name: Setup virtualenv
hosts: undercloud
tasks:
- name: set python_cmd
set_fact:
python_cmd: "python{{ ansible_python.version.major }}"
cacheable: true
when: python_cmd is not defined
- name: Check if virtualenv is in the system
command: "{{ python_cmd }} -m virtualenv --version"
register: virtualenv_exist
failed_when: false
changed_when: false
- when: virtualenv_exist.rc != 0
name: Install virtualenv
become: true
package:
state: present
name: >
{% if ansible_python.version.major == 3 %}
python3-virtualenv
{% else %}
python-virtualenv
{% endif %}
- name: Validate the deployment
hosts: undercloud
# Note(chkumar246): Moved the os_tempest related var at the top
@ -86,9 +58,5 @@
tempest_cloud_name: 'standalone'
tasks:
- include_tasks: tempest.yml
when:
- not run_tempest|bool
- use_os_tempest is defined
- use_os_tempest|bool
tags:
- standalone