diff --git a/docs/roles/deploy_container.md b/docs/roles/deploy_container.md index 10292af6..1ebaa80f 100644 --- a/docs/roles/deploy_container.md +++ b/docs/roles/deploy_container.md @@ -70,6 +70,7 @@ deploy_container: target_group_name: example # 32 character limit target_group_protocol: http target_group_port: 80 + target_group_wait_timeout: 200 # how long to wait for target group events to complete targets: [] # typically we do not specify targets at this point, this will be handled automatically by the ECS service #- Id: 10.0.0.2 # Port: 80 diff --git a/roles/deploy_container/README.md b/roles/deploy_container/README.md index 10292af6..1ebaa80f 100644 --- a/roles/deploy_container/README.md +++ b/roles/deploy_container/README.md @@ -70,6 +70,7 @@ deploy_container: target_group_name: example # 32 character limit target_group_protocol: http target_group_port: 80 + target_group_wait_timeout: 200 # how long to wait for target group events to complete targets: [] # typically we do not specify targets at this point, this will be handled automatically by the ECS service #- Id: 10.0.0.2 # Port: 80 diff --git a/roles/deploy_container/defaults/main.yml b/roles/deploy_container/defaults/main.yml index cee7ce12..00195f6a 100644 --- a/roles/deploy_container/defaults/main.yml +++ b/roles/deploy_container/defaults/main.yml @@ -52,6 +52,7 @@ deploy_container: target_group_name: example # 32 character limit target_group_protocol: http target_group_port: 80 + target_group_wait_timeout: 200 # how long to wait for target group events to complete targets: [] # typically we do not specify targets at this point, this will be handled automatically by the ECS service #- Id: 10.0.0.2 # Port: 80 diff --git a/roles/deploy_container/tasks/main.yml b/roles/deploy_container/tasks/main.yml index af1164eb..053e7ab9 100644 --- a/roles/deploy_container/tasks/main.yml +++ b/roles/deploy_container/tasks/main.yml @@ -153,7 +153,7 @@ target_type: ip targets: "{{ deploy_container.aws_ecs.targets }}" state: present - wait_timeout: 200 + wait_timeout: "{{ deploy_container.aws_ecs.target_group_wait_timeout }}" wait: true register: _aws_ecs_target_group delegate_to: localhost