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

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

16 lines
458 B
YAML

---
- hosts: localhost
tags:
- flavor-registration
tasks:
- name: Configure Nova flavors
include_role:
name: nova-flavors
vars:
flavors_virtualenv_path: "{{ virtualenv_path }}"
flavors_python_upper_constraints_url: >-
{{ python_upper_constraints_url }}
flavors: "{{ nova_flavors }}"
flavors_state: "{{ 'absent' if cmd == 'teardown' else 'present' }}"
when: flavors | length > 0