Add playbook tags
Allows for easily running specific playbooks. Change-Id: Ia859238042eb286b61758acd8f99361c10dc0a05
This commit is contained in:
parent
b4bddc2b54
commit
6e2bb04fae
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- cleanup-state
|
||||||
tasks:
|
tasks:
|
||||||
- name: Load state from file
|
- name: Load state from file
|
||||||
include_vars:
|
include_vars:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set command for deployment
|
- name: Set command for deployment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- flavor-registration
|
||||||
tasks:
|
tasks:
|
||||||
- name: Configure Nova flavors
|
- name: Configure Nova flavors
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- host-setup
|
||||||
tasks:
|
tasks:
|
||||||
- name: Load state from file
|
- name: Load state from file
|
||||||
include_vars:
|
include_vars:
|
||||||
@ -7,6 +9,8 @@
|
|||||||
name: tenks_state
|
name: tenks_state
|
||||||
|
|
||||||
- hosts: hypervisors
|
- hosts: hypervisors
|
||||||
|
tags:
|
||||||
|
- host-setup
|
||||||
vars:
|
vars:
|
||||||
physnet_indices: >-
|
physnet_indices: >-
|
||||||
{{ hostvars.localhost.tenks_state[inventory_hostname].physnet_indices }}
|
{{ hostvars.localhost.tenks_state[inventory_hostname].physnet_indices }}
|
||||||
@ -14,6 +18,8 @@
|
|||||||
- include_tasks: hypervisor_setup.yml
|
- include_tasks: hypervisor_setup.yml
|
||||||
|
|
||||||
- hosts: libvirt
|
- hosts: libvirt
|
||||||
|
tags:
|
||||||
|
- host-setup
|
||||||
tasks:
|
tasks:
|
||||||
- block:
|
- block:
|
||||||
- name: Configure host for Libvirt
|
- name: Configure host for Libvirt
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- node-bmc
|
||||||
tasks:
|
tasks:
|
||||||
- name: Load state from file
|
- name: Load state from file
|
||||||
include_vars:
|
include_vars:
|
||||||
@ -8,6 +10,8 @@
|
|||||||
|
|
||||||
- name: Perform Virtual BMC configuration
|
- name: Perform Virtual BMC configuration
|
||||||
hosts: libvirt
|
hosts: libvirt
|
||||||
|
tags:
|
||||||
|
- node-bmc
|
||||||
vars:
|
vars:
|
||||||
# List of ironic drivers that require virtualbmc.
|
# List of ironic drivers that require virtualbmc.
|
||||||
vbmc_drivers: >-
|
vbmc_drivers: >-
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- node-enrolment
|
||||||
|
- node-enrollment
|
||||||
tasks:
|
tasks:
|
||||||
- name: Load state from file
|
- name: Load state from file
|
||||||
include_vars:
|
include_vars:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- node-instantiation
|
||||||
tasks:
|
tasks:
|
||||||
- name: Load state from file
|
- name: Load state from file
|
||||||
include_vars:
|
include_vars:
|
||||||
@ -7,6 +9,8 @@
|
|||||||
name: tenks_state
|
name: tenks_state
|
||||||
|
|
||||||
- hosts: libvirt
|
- hosts: libvirt
|
||||||
|
tags:
|
||||||
|
- node-instantiation
|
||||||
vars:
|
vars:
|
||||||
nodes: >-
|
nodes: >-
|
||||||
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes
|
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- node-networking
|
||||||
tasks:
|
tasks:
|
||||||
- name: Load state from file
|
- name: Load state from file
|
||||||
include_vars:
|
include_vars:
|
||||||
@ -6,6 +9,8 @@
|
|||||||
name: tenks_state
|
name: tenks_state
|
||||||
|
|
||||||
- hosts: hypervisors
|
- hosts: hypervisors
|
||||||
|
tags:
|
||||||
|
- node-networking
|
||||||
vars:
|
vars:
|
||||||
nodes: >-
|
nodes: >-
|
||||||
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes
|
{{ hostvars.localhost.tenks_state[inventory_hostname].nodes
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- resource-wait
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set default value for expected resources
|
- name: Set default value for expected resources
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
---
|
---
|
||||||
# Ensure we have facts about all hypervisors before scheduling begins.
|
# Ensure we have facts about all hypervisors before scheduling begins.
|
||||||
- hosts: hypervisors
|
- hosts: hypervisors
|
||||||
|
tags:
|
||||||
|
- schedule
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- schedule
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check that all specified node types exist
|
- name: Check that all specified node types exist
|
||||||
fail:
|
fail:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set command for teardown
|
- name: Set command for teardown
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Loading…
Reference in New Issue
Block a user