mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 22:30:04 -07:00
ec2_instance: add a retry to run_instance to help with ec2 consistency
This commit is contained in:
parent
1905a6e8fb
commit
a6d5656dd8
2 changed files with 16 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue