custom_flavor_check.yaml 269 B

123456789
  1. ---
  2. - name: Try to get flavor facts
  3. os_flavor_facts:
  4. name: "{{ flavor }}"
  5. register: flavor_result
  6. - name: Check that custom flavor is available
  7. assert:
  8. that: "flavor_result.ansible_facts.openstack_flavors"
  9. msg: "Flavor {{ flavor }} is not available."