diff --git a/lib/ansible/modules/cloud/amazon/ec2_ami_find.py b/lib/ansible/modules/cloud/amazon/ec2_ami_find.py index b9d796fc4bf..fcb1811f8f3 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_ami_find.py +++ b/lib/ansible/modules/cloud/amazon/ec2_ami_find.py @@ -156,7 +156,7 @@ EXAMPLES = ''' # Launch an EC2 instance - ec2: - image: "{{ ami_search.results[0].ami_id }}" + image: "{{ ami_find.results[0].ami_id }}" instance_type: m3.medium key_name: mykey wait: yes