ec2_instance: add a retry to run_instance to help with ec2 consistency

This commit is contained in:
Julien Vey 2018-04-04 16:21:44 +02:00 committed by Ryan S. Brown
parent 1905a6e8fb
commit a6d5656dd8
2 changed files with 16 additions and 4 deletions

View file

@ -30,9 +30,6 @@
<<: *aws_connection_info
register: iam_role_2
- name: Wait for IAM role to be available, otherwise the next step will fail (Invalid IAM Instance Profile name)
command: sleep 10
- name: Make instance with an instance_role
ec2_instance:
name: "{{ resource_prefix }}-test-default-vpc"