---
- 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
