Skip to content

Commit

Permalink
add credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Dec 20, 2023
1 parent fff9401 commit f6d536f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
aws_security_token: '{{ security_token | default(omit) }}'
aws_region: eu-west-2
resource_prefix: "ansible-test-91376696-fv-az000-111"
aws_security_token: '{{ security_token | default(omit) }}'
21 changes: 11 additions & 10 deletions tests/integration/targets/test_deploy_flask_app/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
- name: "Run deploy_flask_app integration tests"
module_defaults:
group/aws:
aws_profile: eu_london
region: eu-west-2
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
security_token: "{{ aws_security_token }}"
region: "{{ aws_region }}"

block:
- name: Run operation create
Expand All @@ -17,15 +19,14 @@
deploy_flask_app_vpc_id: "{{ vpc.vpc.id }}"
deploy_flask_app_vm_info: "{{ vm_result }}"
deploy_flask_app_rds_info: "{{ rds_result }}"
deploy_flask_app_bastion_ssh_private_key: "{{ test_deploy_flask_app__tmpdir.path }}/id_rsa"

# - name: Check that a page returns successfully
# ansible.builtin.uri:
# url: "http://{{ deploy_flask_app_lb_result.elb.dns_name }}:{{ deploy_flask_app_listening_port }}"
# register: deploy_flask_app_check
# until: "deploy_flask_app_check.status == 200"
# retries: 5
# delay: 10
- name: Check that a page returns successfully
ansible.builtin.uri:
url: "http://{{ deploy_flask_app_lb_result.elb.dns_name }}:{{ deploy_flask_app_listening_port }}"
register: deploy_flask_app_check
until: "deploy_flask_app_check.status == 200"
retries: 5
delay: 10

always:
# Cleanup after ourselves
Expand Down

0 comments on commit f6d536f

Please sign in to comment.