blob: 0942e680800b15438e0bd9598fc320a0df95fc62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# 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"
|