Skip to content

Instantly share code, notes, and snippets.

@drybjed
Created May 20, 2014 15:56
Show Gist options
  • Save drybjed/6ee85ee3140059d14028 to your computer and use it in GitHub Desktop.
Save drybjed/6ee85ee3140059d14028 to your computer and use it in GitHub Desktop.
- name: Wait until VM is installed
virt: name={{ vm.name }}
command=status
register: virt_status
until: virt_status.status == 'shutdown'
retries: 20
delay: 60
when: {{ vm.state }} == 'running'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment