Restore tags inside the main playbook

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
This commit is contained in:
Raoul Scarazzini 2017-06-12 10:58:06 -04:00
parent a72d3602cd
commit 7c2883814a
4 changed files with 28 additions and 0 deletions

View File

@ -2,6 +2,8 @@
- name: Prepare configuration files for the overcloud deployment
hosts: undercloud
gather_facts: no
tags:
- overcloud-prep-config
roles:
- overcloud-prep-config
@ -9,6 +11,8 @@
- name: Prepare overcloud containers
hosts: undercloud
gather_facts: no
tags:
- overcloud-prep-containers
roles:
- overcloud-prep-containers
@ -16,6 +20,8 @@
- name: Prepare the overcloud images for deployment
hosts: undercloud
gather_facts: no
tags:
- overcloud-prep-images
roles:
- overcloud-prep-images
@ -34,6 +40,8 @@
- name: Prepare overcloud flavors
hosts: undercloud
gather_facts: no
tags:
- overcloud-prep-flavors
roles:
- overcloud-prep-flavors
@ -41,6 +49,8 @@
- name: Prepare the undercloud networks for the overcloud deployment
hosts: undercloud
gather_facts: no
tags:
- overcloud-prep-network
roles:
- overcloud-prep-network
@ -58,5 +68,7 @@
- name: Prepare the SSL Configuration for the overcloud deployment
hosts: undercloud
gather_facts: no
tags:
- overcloud-ssl
roles:
- { role: overcloud-ssl }

View File

@ -12,6 +12,7 @@
gather_facts: yes
tags:
- overcloud-deploy
- overcloud-inventory
vars:
inventory: all
roles:
@ -33,6 +34,7 @@
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"

View File

@ -2,6 +2,8 @@
- name: Deploy the FreeIPA server
hosts: supplemental
gather_facts: no
tags:
- freeipa-setup
roles:
- { role: freeipa-setup, when: deploy_supplemental_node|bool and enable_tls_everywhere|bool }
@ -11,6 +13,8 @@
gather_facts: no
vars:
ansible_user: root
tags:
- undercloud-setup
roles:
- { role: undercloud-setup, when: undercloud_setup|bool }
@ -18,6 +22,8 @@
- name: Deploy the undercloud
hosts: undercloud
gather_facts: no
tags:
- undercloud-deploy
roles:
- undercloud-deploy

View File

@ -0,0 +1,8 @@
---
features:
- |
Tags were added in all the playbooks so that it is possible to control
atomically the flow of the entire process.
For details about how to use tags check the chapter *Using tags to
atomically execute specific phases of the deployment* in
[TripleO Quickstart - Getting Started Guide](https://docs.openstack.org/tripleo-quickstart/latest/getting-started.html)