custom_flavor_check.yaml 266 B

12345678910
  1. ---
  2. - name: Try to get flavor facts
  3. os_flavor_facts:
  4. name: "{{ item }}"
  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 {{ item }} is not available."