aboutsummaryrefslogblamecommitdiffstats
path: root/roles/sshdns/tasks/main.yml
blob: 0942e680800b15438e0bd9598fc320a0df95fc62 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
 



                                          
 





                                                     



                                                             

# 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"
remember that computers suck.