Files
tripleo-quickstart-extras/playbooks/quickstart-extras-overcloud.yml
wes hayutin 37109c55aa Revert "Upgrade linters (ansible-lint v5)"
This reverts commit ac93fbbb47.

Reason for revert: breaks default install path for quickstart

Change-Id: I7d513d1bffdfd4293f199c38216ceb00343e06c5
2021-03-12 17:50:42 +00:00

55 lines
1.5 KiB
YAML

---
# Deploy the overcloud
- name: Deploy the overcloud
hosts: undercloud
gather_facts: true
tags:
- overcloud-deploy
roles:
- overcloud-deploy
- name: Add the overcloud nodes to the generated inventory
hosts: undercloud
gather_facts: true
tags:
- overcloud-deploy
- overcloud-inventory
vars:
inventory: all
roles:
- tripleo-inventory
- name: Run tripleo-validations post-deployment tests
hosts: undercloud
gather_facts: false
tags:
- tripleo-validations
vars:
validations_group: ['post-deployment']
tasks:
- include_role:
name: tripleo_validations
when:
- (run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool)
- release not in ['queens', 'rocky', 'stein']
# Check the results of the deployment, note after inventory has executed
- name: Check the result of the deployment
hosts: undercloud
tags:
- overcloud-deploy
- overcloud-check
tasks:
- name: Check the overcloud_deployment_result.json if this is CI job
tags:
- overcloud-deploy
block:
- name: ensure the deployment result has been read into memory
include_vars: "{{ local_working_dir }}/overcloud_deployment_result.json"
delegate_to: localhost
# overcloud_deploy_result = ["failed", "passed"]
- name: did the deployment pass or fail?
debug: var=overcloud_deploy_result
failed_when: overcloud_deploy_result == "failed"
delegate_to: localhost