Skip to content

Commit

Permalink
fix inventory template issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Dec 20, 2023
1 parent eb7c6f3 commit 0e09fe5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/deploy_flask_app/templates/inventory.yml.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
all:
hosts:
{% for item in deploy_flask_app_workers_instances %}
{{ item.instance_id }}:
ansible_host: "{{ item.private_ip_address }}"
workers_hosts: "{{ deploy_flask_app_workers_join }}"
ansible_ssh_user: "{{ deploy_flask_app_workers_user_name }}"
ansible_ssh_common_args: '-o "UserKnownHostsFile=/dev/null" -o StrictHostKeyChecking=no -i {{ deploy_flask_app_workers_ssh_private_key }}'
ansible_python_interpreter: auto
ansible_python_interpreter: auto
{% endfor %}

0 comments on commit 0e09fe5

Please sign in to comment.