Merge "Cleanup quickstart-extras-standalone playbook"
This commit is contained in:
commit
1728c577e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user