# ssh dns ~~ roles/ssh_dns/tasks/main.yml # generate dns for ssh use on workstations --- - name: create config directory file: path: "{{ lookup('env', 'HOME') }}/.ssh/config.d" state: directory mode: 0700 - name: Generate template to localhost template: src: templates/generate_dns.j2 dest: "{{ lookup('env', 'HOME') }}/.ssh/config.d/ssh_dns"