2 - name: load additional config from .ssh dir
4 dir: "{{ '~/.ssh' | expanduser }}"
6 files_matching: 'r3_localconfig.yml'
8 - name: create .ssh/config.d
10 path: "~/.ssh/config.d/"
13 - name: install generated ssh config snippets
15 - "../templates/ssh/*.conf.j2"
17 src: "ssh/{{ item | basename }}"
18 dest: "~/.ssh/config.d/{{ item | basename | regex_replace('^(.*)\\.j2$', '\\1') }}"
20 - name: install static ssh config snippets
23 dest: ~/.ssh/config.d/
25 - name: assemble ssh config
30 when: localconfig_overwrite_ssh_config