tenks/ansible/deploy.yml
Mark Goddard 6e2bb04fae Add playbook tags
Allows for easily running specific playbooks.

Change-Id: Ia859238042eb286b61758acd8f99361c10dc0a05
2019-03-27 16:43:13 +00:00

40 lines
887 B
YAML

---
- hosts: all
tags:
- always
tasks:
- name: Set command for deployment
set_fact:
cmd: deploy
- name: Schedule nodes
import_playbook: schedule.yml
- name: Perform deployment host configuration
import_playbook: host_setup.yml
- name: Configure node networking
import_playbook: node_networking.yml
- name: Configure node instantiation
import_playbook: node_instantiation.yml
- name: Set up virtual node BMCs
import_playbook: node_bmc.yml
- name: Perform Ironic node configuration
import_playbook: node_enrolment.yml
tags: openstack
- name: Register flavors in Nova
import_playbook: flavor_registration.yml
tags: openstack
- name: Wait for resources to become available
import_playbook: resource_wait.yml
when: wait_for_placement | bool
tags: openstack, resource
- name: Clean up Tenks state
import_playbook: cleanup_state.yml