Hi,
I’m trying to deploy the VyOS 1.5 OVA with Ansible and set its IP and Subnet during deployment but its not working.
I have seen the below but could not find it there.
VyOS Automation — VyOS 1.5.x (circinus) documentation
Anyone knows how to achieve this…
Below is my Ansible playbook, and the OVA deploys fine but the IP does not get assigned.
---
- name: OVA DEPLOYMENT
hosts: host1
gather_facts: false
become: true
collections:
- community.vmware
vars_files:
- vars_eur_vms.yml
tasks:
- name: OVA Deployment
vmware_deploy_ovf:
hostname: '{{ ansible_host }}'
username: '{{ ansible_user }}'
password: '{{ ansible_password }}'
datastore: "{{ dstore1 }}"
networks:
"Network 1": "1G_Trunk"
"Network 2": "10G_Trunk"
ovf: "/root/VyOS.ova"
name: "VyOS"
properties:
ip0: "192.168.1.10"
netmask0: "255.255.255.0"
wait_for_ip_address: true
inject_ovf_env: true
validate_certs: no
power_on: 'yes'
delegate_to: localhost
I did some research and found there is suppose to be a 1st boot script in the OS that is waiting to receive values, how or where do I find this script in VyOS.
Thanks…