Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created November 30, 2017 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrisch/c8942e4367bc6c59cef2486110a1e608 to your computer and use it in GitHub Desktop.
Save jrisch/c8942e4367bc6c59cef2486110a1e608 to your computer and use it in GitHub Desktop.
- name: Boot VM and start preseed installation
command: xe vm-start uuid={{ vmuuid.stdout }}
- name: Get the boot time for the VM
command: xe vm-param-get param-name=start-time uuid={{ vmuuid.stdout}}
register: boottime
- name: Watch for the first reboot
shell: export starttime={{ boottime.stdout }}; while [[ ${starttime} == {{ boottime.stdout }} ]]; do sleep 15; starttime=`xe vm-param-get param-name=start-time uuid={{ vmuuid.stdout }}`; done
async: 1800
poll: 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment