# ssh ~~ tasks/local_dns.yml - name: Generate template to localhost template: src: templates/generate_dns.j2 dest: "{{ lookup('env', 'HOME') }}/.ssh/config.d/ssh_dns"