summaryrefslogtreecommitdiffstats
path: root/roles/static_inventory/tasks/sshconfig.yml
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2017-07-27 15:39:42 +0200
committerGitHub <noreply@github.com>2017-07-27 15:39:42 +0200
commit1b76aeba44ce8cb1120a6659c375fe8b4c87f919 (patch)
tree4c43dfdfefcc139249458606c9c4edefc1c38c32 /roles/static_inventory/tasks/sshconfig.yml
parent5cbcfd231054b0f64d9bc70064ecdb892cfbaec5 (diff)
parentdf8f5f0e251a014ab30dabd62c17e151b7fe36e8 (diff)
downloadopenshift-1b76aeba44ce8cb1120a6659c375fe8b4c87f919.tar.gz
openshift-1b76aeba44ce8cb1120a6659c375fe8b4c87f919.tar.bz2
openshift-1b76aeba44ce8cb1120a6659c375fe8b4c87f919.tar.xz
openshift-1b76aeba44ce8cb1120a6659c375fe8b4c87f919.zip
Merge pull request #535 from bogdando/bastion_inventory
Options for bastion, SSH config, static inventory autogeneration
Diffstat (limited to 'roles/static_inventory/tasks/sshconfig.yml')
-rw-r--r--roles/static_inventory/tasks/sshconfig.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/static_inventory/tasks/sshconfig.yml b/roles/static_inventory/tasks/sshconfig.yml
new file mode 100644
index 000000000..7119fe6ff
--- /dev/null
+++ b/roles/static_inventory/tasks/sshconfig.yml
@@ -0,0 +1,13 @@
+---
+- name: set ssh proxy command prefix for accessing nodes via bastion
+ set_fact:
+ ssh_proxy_command: >-
+ ssh {{ ssh_options }}
+ -i {{ private_ssh_key }}
+ {{ ssh_user }}@{{ hostvars['bastion'].ansible_host }}
+
+- name: regenerate ssh config
+ template:
+ src: openstack_ssh_config.j2
+ dest: "{{ ssh_config_path }}"
+ mode: 0644