summaryrefslogtreecommitdiffstats
path: root/playbooks/libvirt
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-06-09 09:37:34 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-06-09 09:37:34 -0400
commit9872c03145f3b597244880d440530ba02e1190b0 (patch)
tree5824d606f7b14c62fd130a8a114b80829d57c266 /playbooks/libvirt
parent142ef2dd35161e4544962daff21e8477988b0618 (diff)
parent5bd864d11b08370581b9cba219862ff4f578eca3 (diff)
downloadopenshift-9872c03145f3b597244880d440530ba02e1190b0.tar.gz
openshift-9872c03145f3b597244880d440530ba02e1190b0.tar.bz2
openshift-9872c03145f3b597244880d440530ba02e1190b0.tar.xz
openshift-9872c03145f3b597244880d440530ba02e1190b0.zip
Merge pull request #270 from lhuard1A/fix_libvirt
Fix libvirt playbook
Diffstat (limited to 'playbooks/libvirt')
-rw-r--r--playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
index 8bf1e84ee..8291192ab 100644
--- a/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/libvirt/openshift-cluster/tasks/launch_instances.yml
@@ -59,14 +59,14 @@
with_items: instances
- name: Wait for the VMs to get an IP
- shell: 'virsh net-dhcp-leases openshift-ansible | egrep -c ''{{ instances | join("|") }}'''
+ shell: 'virsh -c {{ libvirt_uri }} net-dhcp-leases openshift-ansible | egrep -c ''{{ instances | join("|") }}'''
register: nb_allocated_ips
until: nb_allocated_ips.stdout == '{{ instances | length }}'
retries: 30
delay: 1
- name: Collect IP addresses of the VMs
- shell: 'virsh net-dhcp-leases openshift-ansible | awk ''$6 == "{{ item }}" {gsub(/\/.*/, "", $5); print $5}'''
+ shell: 'virsh -c {{ libvirt_uri }} net-dhcp-leases openshift-ansible | awk ''$6 == "{{ item }}" {gsub(/\/.*/, "", $5); print $5}'''
register: scratch_ip
with_items: instances