Skip to content
This repository has been archived by the owner on Jul 16, 2018. It is now read-only.

Commit

Permalink
Connect to guests own IP-address and port
Browse files Browse the repository at this point in the history
  • Loading branch information
kvs committed Nov 17, 2015
1 parent a625691 commit c59a20b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions domain/create/tasks/main.yml
Expand Up @@ -52,13 +52,8 @@

- name: wait for ssh
wait_for:
host: "{{ libvirt_host_ssh_ip_address }}"
port: >
{{ libvirt_result_winrm_port
if (libvirt_result_winrm_port | int) > 0
else libvirt_result_ssh_port
}}
host: "{{ libvirt_result_ip_address }}"
port: "{{ libvirt_ssh_guest_port }}"
timeout: 60 # seconds
delegate_to: 127.0.0.1
with_items: libvirt_domain_names
with_items: libvirt_domain_name
when: (libvirt_result_winrm_port | int) <= 0

0 comments on commit c59a20b

Please sign in to comment.