--- - name: Baremetal undercloud install hosts: localhost roles: - baremetal-undercloud tags: - baremetal-undercloud - name: Add the undercloud node to the generated inventory hosts: localhost gather_facts: yes roles: - tripleo-inventory tags: - undercloud-inventory - name: Setup repositories hosts: undercloud gather_facts: yes roles: - repo-setup tags: - undercloud-repo-setup - name: Install packages hosts: undercloud gather_facts: no roles: - baremetal-undercloud/packages tags: - undercloud-pkgs-install - name: Deploy the undercloud hosts: undercloud gather_facts: no roles: - undercloud-deploy tags: - undercloud-deploy - name: Prepare baremetal for the overcloud deployment hosts: undercloud roles: - baremetal-prep-overcloud tags: - baremetal-prep-overcloud - name: Prepare configuration files for the overcloud deployment hosts: undercloud gather_facts: no roles: - overcloud-prep-config tags: - overcloud-prep-config - name: Prepare overcloud containers hosts: undercloud gather_facts: no roles: - overcloud-prep-containers tags: - overcloud-prep-containers - name: Fetch the overcloud images hosts: undercloud gather_facts: no become: true roles: - fetch-images tags: - overcloud-fetch-images - name: Prepare the overcloud images for deployment hosts: undercloud gather_facts: no roles: - overcloud-prep-images tags: - overcloud-prep-images - name: Prepare overcloud flavors hosts: undercloud gather_facts: no roles: - overcloud-prep-flavors tags: - overcloud-prep-flavors - name: Prepare the undercloud networks for the overcloud deployment hosts: undercloud gather_facts: no roles: - overcloud-prep-network tags: - overcloud-prep-network - name: Prepare SSL for the overcloud hosts: undercloud gather_facts: yes roles: - overcloud-ssl tags: - overcloud-ssl - name: Deploy the overcloud hosts: undercloud gather_facts: yes roles: - overcloud-deploy tags: - overcloud-deploy - name: Add the overcloud nodes to the generated inventory hosts: undercloud gather_facts: yes vars: inventory: all roles: - tripleo-inventory tags: - overcloud-inventory - name: Check the result of the deployment hosts: localhost 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" tags: - overcloud-deploy-check - name: Gather undercloud and overcloud facts hosts: undercloud overcloud gather_facts: yes tags: - overcloud-validate-ha - name: Validate the overcloud using HA tests hosts: undercloud gather_facts: no roles: - validate-ha tags: - overcloud-validate-ha