Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: download ca.pem from RHV Manager
- get_url:
- url: "{{ ca_pem_url }}"
- dest: "{{ ca_pem_tmp }}"
- force: yes
- register: ca_file
- - name: Login to RHVM
- ovirt_auth:
- url: "{{ rhvm_api }}"
- username: "{{ rhvm_user }}"
- password: "{{ rhvm_passwd }}"
- ca_file: "{{ ca_pem_tmp }}"
- - name: Create VM
- ovirt_vm:
- auth: "{{ ovirt_auth }}"
- state: "{{ vms_state }}"
- name: "{{ vms_name }}"
- storage_domain: "{{ vms_storage_domain }}"
- template: "{{ vms_template }}"
- clone: "{{ vms_clone_option }}"
- operating_system: "{{ vms_os }}"
- cluster: "{{ vms_cluster }}"
- nics: "{{ vms_nics }}"
- cpu_sockets: "{{ vms_cpu }}"
- memory: "{{ vms_ram }}"
- #disk_format: "{{ vms_disk_type }}"
- #disks:
- # - name: mydisk
- # - interface: virtio
- # - bootable: true
- # - activate: true
- #vnic_profile_mappings:
- # - source_network_name: "Groot-VM-Network"
- # - source_profile_name: "Groot-VM-Network"
- # - target_id_profile: "1576a854-3a8a-44f8-8547-896948bfd9fe"
Add Comment
Please, Sign In to add comment