summaryrefslogtreecommitdiffstats
path: root/roles/static_inventory/tasks/sshconfig.yml
blob: 7119fe6ffa89b8ec0bb5b4d99b907e0646502648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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