7c2883814a
This modification reintroduces the tags for all the task inside the main playbooks quickstart-extras-*.yml. This is related to the tags topic [1] and is meant for developers who wants to have atomic access to each step of the deployment. [1] https://bugs.launchpad.net/tripleo/+bug/1657415 Change-Id: Icd645ee9003bafb8988a6430280ab4b7ad5ff34f
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
# Deploy the overcloud
|
|
- name: Deploy the overcloud
|
|
hosts: undercloud
|
|
gather_facts: yes
|
|
tags:
|
|
- overcloud-deploy
|
|
roles:
|
|
- overcloud-deploy
|
|
|
|
- name: Add the overcloud nodes to the generated inventory
|
|
hosts: undercloud
|
|
gather_facts: yes
|
|
tags:
|
|
- overcloud-deploy
|
|
- overcloud-inventory
|
|
vars:
|
|
inventory: all
|
|
roles:
|
|
- tripleo-inventory
|
|
|
|
- name: Run tripleo-validations post-deployment tests
|
|
hosts: undercloud
|
|
gather_facts: no
|
|
tags:
|
|
- tripleo-validations
|
|
vars:
|
|
validations_group: ['post-deployment']
|
|
roles:
|
|
- { role: tripleo-validations,
|
|
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}
|
|
|
|
# Check the results of the deployment, note after inventory has executed
|
|
- name: Check the result of the deployment
|
|
hosts: localhost
|
|
tags:
|
|
- overcloud-deploy
|
|
- overcloud-check
|
|
tasks:
|
|
- name: ensure the deployment result has been read into memory
|
|
include_vars: "{{ local_working_dir }}/overcloud_deployment_result.json"
|
|
|
|
# overcloud_deploy_result = ["failed", "passed"]
|
|
- name: did the deployment pass or fail?
|
|
debug:
|
|
var: overcloud_deploy_result
|
|
failed_when: overcloud_deploy_result == "failed"
|