From c51ee8c6dcf3717842113637f7a692f4590babf4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 13 May 2015 23:18:07 +0000 Subject: [PATCH] See if we can make this a little prettier --- tasks/transient_cloud.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks/transient_cloud.yml b/tasks/transient_cloud.yml index 07a459aa3f..59c4623aa7 100644 --- a/tasks/transient_cloud.yml +++ b/tasks/transient_cloud.yml @@ -24,7 +24,14 @@ local_action: add_host hostname="{{ nova_result.public_ip }}" groupname=tmp_just_created - name: mail off about where it is - local_action: mail to=sysadmin-main-members@fedoraproject.org from=ansible-create@fedoraproject.org subject="{{ nova_result.public_ip }}" msg="transient cloud instance created on {{ nova_result.public_ip }}\n name = {{ name }}\nroot_uath_users = {{ root_auth_users }}\nimage = {{ image }}" + 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 }} + name = {{ name }} + root_uath_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