Add playbook tags

Allows for easily running specific playbooks.

Change-Id: Ia859238042eb286b61758acd8f99361c10dc0a05
This commit is contained in:
Mark Goddard 2019-03-27 16:42:35 +00:00
parent b4bddc2b54
commit 6e2bb04fae
11 changed files with 37 additions and 0 deletions

View File

@ -1,5 +1,7 @@
---
- hosts: localhost
tags:
- cleanup-state
tasks:
- name: Load state from file
include_vars:

View File

@ -1,5 +1,7 @@
---
- hosts: all
tags:
- always
tasks:
- name: Set command for deployment
set_fact:

View File

@ -1,5 +1,7 @@
---
- hosts: localhost
tags:
- flavor-registration
tasks:
- name: Configure Nova flavors
include_role:

View File

@ -1,5 +1,7 @@
---
- hosts: localhost
tags:
- host-setup
tasks:
- name: Load state from file
include_vars:
@ -7,6 +9,8 @@
name: tenks_state
- hosts: hypervisors
tags:
- host-setup
vars:
physnet_indices: >-
{{ hostvars.localhost.tenks_state[inventory_hostname].physnet_indices }}
@ -14,6 +18,8 @@
- include_tasks: hypervisor_setup.yml
- hosts: libvirt
tags:
- host-setup
tasks:
- block:
- name: Configure host for Libvirt

View File

@ -1,5 +1,7 @@
---
- hosts: localhost
tags:
- node-bmc
tasks:
- name: Load state from file
include_vars:
@ -8,6 +10,8 @@
- name: Perform Virtual BMC configuration
hosts: libvirt
tags:
- node-bmc
vars:
# List of ironic drivers that require virtualbmc.
vbmc_drivers: >-

View File

@ -1,4 +1,8 @@
---
- hosts: localhost
tags:
- node-enrolment
- node-enrollment
tasks:
- name: Load state from file
include_vars:

View File

@ -1,5 +1,7 @@
---
- hosts: localhost
tags:
- node-instantiation
tasks:
- name: Load state from file
include_vars:
@ -7,6 +9,8 @@
name: tenks_state
- hosts: libvirt
tags:
- node-instantiation
vars:
nodes: >-
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes

View File

@ -1,4 +1,7 @@
---
- hosts: localhost
tags:
- node-networking
tasks:
- name: Load state from file
include_vars:
@ -6,6 +9,8 @@
name: tenks_state
- hosts: hypervisors
tags:
- node-networking
vars:
nodes: >-
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes

View File

@ -1,5 +1,7 @@
---
- hosts: localhost
tags:
- resource-wait
tasks:
- name: Set default value for expected resources
set_fact:

View File

@ -1,9 +1,13 @@
---
# Ensure we have facts about all hypervisors before scheduling begins.
- hosts: hypervisors
tags:
- schedule
gather_facts: true
- hosts: localhost
tags:
- schedule
tasks:
- name: Check that all specified node types exist
fail:

View File

@ -1,5 +1,7 @@
---
- hosts: all
tags:
- always
tasks:
- name: Set command for teardown
set_fact: