diff options
author | Bogdan Dobrelya <bdobreli@redhat.com> | 2017-07-27 15:39:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 15:39:42 +0200 |
commit | 1b76aeba44ce8cb1120a6659c375fe8b4c87f919 (patch) | |
tree | 4c43dfdfefcc139249458606c9c4edefc1c38c32 /roles/static_inventory/tasks/sshconfig.yml | |
parent | 5cbcfd231054b0f64d9bc70064ecdb892cfbaec5 (diff) | |
parent | df8f5f0e251a014ab30dabd62c17e151b7fe36e8 (diff) | |
download | openshift-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.yml | 13 |
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 |