From 858b1c277bd383d8ca0b24c9212120301c1b71dc Mon Sep 17 00:00:00 2001 From: Ryan Brown Date: Tue, 22 May 2018 11:21:04 -0400 Subject: [PATCH] [docs] Update `ec2` module to use wait_for_connection instead of wait_for (#40171) --- lib/ansible/modules/cloud/amazon/ec2.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2.py b/lib/ansible/modules/cloud/amazon/ec2.py index 63a2b63477a..e7dc59715e7 100644 --- a/lib/ansible/modules/cloud/amazon/ec2.py +++ b/lib/ansible/modules/cloud/amazon/ec2.py @@ -91,7 +91,7 @@ options: - ramdisk I(eri) to use for the instance wait: description: - - wait for the instance to reach its desired state before returning. Does not wait for SSH, see 'wait_for' example for details. + - wait for the instance to reach its desired state before returning. Does not wait for SSH, see 'wait_for_connection' example for details. type: bool default: 'no' wait_timeout: @@ -384,12 +384,10 @@ EXAMPLES = ''' with_items: "{{ ec2.instances }}" - name: Wait for SSH to come up - wait_for: - host: "{{ item.public_dns_name }}" - port: 22 + delegate_to: "{{ item.public_dns_name }}" + wait_for_connection: delay: 60 timeout: 320 - state: started with_items: "{{ ec2.instances }}" - name: Configure instance(s)