ovirt-vm-infra.yml 772 B

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. - name: Deploy oVirt template and virtual machines
  3. hosts: localhost
  4. connection: local
  5. gather_facts: false
  6. pre_tasks:
  7. - name: Log in to oVirt
  8. ovirt_auth:
  9. url: "{{ engine_url }}"
  10. username: "{{ engine_user }}"
  11. password: "{{ engine_password }}"
  12. ca_file: "{{ engine_cafile | default(omit) }}"
  13. insecure: "{{ engine_insecure | default(true) }}"
  14. tags:
  15. - always
  16. - name: Build virtual machine facts
  17. import_role:
  18. name: openshift_ovirt
  19. tasks_from: build_vm_list.yml
  20. roles:
  21. - oVirt.image-template
  22. - oVirt.vm-infra
  23. post_tasks:
  24. - name: Logout from oVirt
  25. ovirt_auth:
  26. state: absent
  27. ovirt_auth: "{{ ovirt_auth }}"
  28. tags:
  29. - always
  30. ...