<div dir="ltr">oVirt Version: 4.1.5<div><br></div><div>Ansible: 2.3.1</div><div><br></div><div>Hello Friends of oVirt</div><div><br></div><div><div>I want to automate the creation, provisioning and deployment of virtual machines in oVirt, using Ansible.</div><div><br></div><div>I want to use a non-cloud image for the template. It has cloud-init installed. And it looks for the IP http: //169.254.169 and the following error message: "Calling 'http: //169.254.169 ....."</div><div><br></div><div>It looks like oVirt uses a config drive with a user-data.txt file</div><div><br></div><div>This is my Ansible Playbook:</div><div><br></div><div><div>---</div><div># Primer Play</div><div>- hosts: oVirtEnginePruebas</div><div> remote_user: root</div><div> tasks:</div><div> - name : Definiendo la conexion con el Engine de oVirt</div><div> ovirt_auth:</div><div> url: <a href="https://engine1.example.com/ovirt-engine/api">https://engine1.example.com/ovirt-engine/api</a></div><div> username: admin@internal</div><div> password: mysupersecretpassword</div><div> ca_file: /etc/pki/ovirt-engine/ca.pem</div><div><br></div><div> - name : Creando la maquina virtual requerida</div><div> ovirt_vms:</div><div> auth: "{{ ovirt_auth }}"</div><div> state: present</div><div> name: CentOS7CloudInit</div><div> template: CloudInitTemplate</div><div> cluster: Default</div><div><br></div><div> - name : Se establecen las propiedades de la maquina virtual y los parametros de cloud-init</div><div> ovirt_vms:</div><div> auth: "{{ ovirt_auth }}"</div><div> name: CentOS7CloudInit</div><div> template: CloudInitTemplate</div><div> cluster: Default</div><div> memory: 5GiB</div><div> cpu_cores: 8</div><div> high_availability: true</div><div> cloud_init:</div><div> host_name: <a href="http://cloudinit.example.com">cloudinit.example.com</a></div><div> nic_name: eth0</div><div> nic_boot_protocol: static</div><div> nic_ip_address: 192.168.0.238</div><div> nic_netmask: 255.255.255.0</div><div> nic_gateway: 192.168.0.1</div><div> dns_servers: 8.8.8.8</div><div> dns_search: <a href="http://example.com">example.com</a></div><div> nic_on_boot: true</div><div> user_name: root</div><div> root_password: mysupersecretpassword</div><div><br></div><div> - name : Desconectando con el Engine de oVirt revocando el token SSO</div><div> ovirt_auth:</div><div> state: absent</div><div> ovirt_auth: "{{ ovirt_auth }}"</div><div>~</div></div><div><br></div><div><br></div><div>I just want to use Ansible for this, I do not want to use the oVirt webinterface to run run once every time I want to provision a machine.<br></div><div><br></div><div>How can I do that ?</div><div><br></div><div>Thanks in advance</div></div></div>