Skip to content

Commit 3bee293

Browse files
committed
fix inventory template issue
1 parent eb7c6f3 commit 3bee293

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
all:
22
hosts:
3+
{% for item in deploy_flask_app_workers_instances %}
34
{{ item.instance_id }}:
45
ansible_host: "{{ item.private_ip_address }}"
56
workers_hosts: "{{ deploy_flask_app_workers_join }}"
67
ansible_ssh_user: "{{ deploy_flask_app_workers_user_name }}"
78
ansible_ssh_common_args: '-o "UserKnownHostsFile=/dev/null" -o StrictHostKeyChecking=no -i {{ deploy_flask_app_workers_ssh_private_key }}'
8-
ansible_python_interpreter: auto
9+
ansible_python_interpreter: auto
10+
{% endfor %}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
cloud/aws
1+
!cloud/aws
22
role/deploy_flask_app
33
time=35m
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
aws_security_token: '{{ security_token | default(omit) }}'
1+
aws_security_token: '{{ security_token | default(omit) }}'
2+
aws_region: eu-west-2
3+
resource_prefix: ansible-test-local-20231220

tests/integration/targets/test_deploy_flask_app/tasks/main.yaml

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
- name: "Run deploy_flask_app integration tests"
33
module_defaults:
44
group/aws:
5-
aws_access_key: "{{ aws_access_key }}"
6-
aws_secret_key: "{{ aws_secret_key }}"
7-
security_token: "{{ aws_security_token }}"
8-
region: "{{ aws_region }}"
5+
# aws_access_key: "{{ aws_access_key }}"
6+
# aws_secret_key: "{{ aws_secret_key }}"
7+
# security_token: "{{ aws_security_token }}"
8+
# region: "{{ aws_region }}"
9+
aws_profile: eu_london
10+
region: eu-west-2
911

1012
block:
1113
- name: Run operation create
@@ -29,7 +31,7 @@
2931
# retries: 5
3032
# delay: 10
3133

32-
always:
33-
# Cleanup after ourselves
34-
- name: Cleanup
35-
ansible.builtin.include_tasks: "delete.yaml"
34+
# always:
35+
# # Cleanup after ourselves
36+
# - name: Cleanup
37+
# ansible.builtin.include_tasks: "delete.yaml"

0 commit comments

Comments
 (0)