Guest User

Untitled

a guest
Nov 21st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. - name: download ca.pem from RHV Manager
  2. get_url:
  3. url: "{{ ca_pem_url }}"
  4. dest: "{{ ca_pem_tmp }}"
  5. force: yes
  6. register: ca_file
  7.  
  8. - name: Login to RHVM
  9. ovirt_auth:
  10. url: "{{ rhvm_api }}"
  11. username: "{{ rhvm_user }}"
  12. password: "{{ rhvm_passwd }}"
  13. ca_file: "{{ ca_pem_tmp }}"
  14.  
  15. - name: Create VM
  16. ovirt_vm:
  17. auth: "{{ ovirt_auth }}"
  18. state: "{{ vms_state }}"
  19. name: "{{ vms_name }}"
  20. storage_domain: "{{ vms_storage_domain }}"
  21. template: "{{ vms_template }}"
  22. clone: "{{ vms_clone_option }}"
  23. operating_system: "{{ vms_os }}"
  24. cluster: "{{ vms_cluster }}"
  25. nics: "{{ vms_nics }}"
  26. cpu_sockets: "{{ vms_cpu }}"
  27. memory: "{{ vms_ram }}"
  28. #disk_format: "{{ vms_disk_type }}"
  29. #disks:
  30. # - name: mydisk
  31. # - interface: virtio
  32. # - bootable: true
  33. # - activate: true
  34. #vnic_profile_mappings:
  35. # - source_network_name: "Groot-VM-Network"
  36. # - source_profile_name: "Groot-VM-Network"
  37. # - target_id_profile: "1576a854-3a8a-44f8-8547-896948bfd9fe"
Add Comment
Please, Sign In to add comment