diff options
Diffstat (limited to 'resources/ansible_roles/openstack/templates/ssh.cfg.j2')
-rw-r--r-- | resources/ansible_roles/openstack/templates/ssh.cfg.j2 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/ansible_roles/openstack/templates/ssh.cfg.j2 b/resources/ansible_roles/openstack/templates/ssh.cfg.j2 new file mode 100644 index 00000000..c0a1f94e --- /dev/null +++ b/resources/ansible_roles/openstack/templates/ssh.cfg.j2 @@ -0,0 +1,11 @@ +# Connect to target node + +{% for item in stack.stack.outputs %} +{% if item.output_key == 'instance_ip' %} +Host {{ item.output_value }} + HostName {{ item.output_value }} + User {{ ansible_user }} + IdentityFile {{ temp_dir }}/QtipKey +{% endif %} + +{% endfor %} |