From afcafd62e6dc1b4a841b1530887aad9d8b18b38d Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 6 Jul 2016 19:22:41 +0000 Subject: [PATCH] Fix up transient cloud playbook to use the right thing for ip --- tasks/transient_cloud.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/transient_cloud.yml b/tasks/transient_cloud.yml index 4c6ce57106..45739041ac 100644 --- a/tasks/transient_cloud.yml +++ b/tasks/transient_cloud.yml @@ -28,22 +28,22 @@ local_action: mail to=sysadmin-main-members@fedoraproject.org from=ansible-create@fedoraproject.org - subject="{{ nova_result.public_ip }}" - body="transient cloud instance created on {{ nova_result.public_ip }} + subject="{{ nova_result.public_ip[0] }}" + body="transient cloud instance created on {{ nova_result.public_ip[0] }} name = {{ name }} root_auth_users = {{ root_auth_users }} image = {{ image }}" - name: wait for he host to be hot - local_action: wait_for host={{ nova_result.public_ip }} port=22 delay=1 timeout=600 + local_action: wait_for host={{ nova_result.public_ip[0] }} port=22 delay=1 timeout=600 - name: gather ssh host key from new instance - local_action: command ssh-keyscan -t rsa {{ nova_result.public_ip }} + local_action: command ssh-keyscan -t rsa {{ nova_result.public_ip[0] }} ignore_errors: True register: hostkey - name: add new ssh host key (you still need to add it to official ssh_host_keys later) - local_action: known_hosts path={{item}} key="{{ hostkey.stdout }}" host={{ nova_result.public_ip }} state=present + local_action: known_hosts path={{item}} key="{{ hostkey.stdout }}" host={{ nova_result.public_ip[0] }} state=present ignore_errors: True with_items: - /root/.ssh/known_hosts