diff options
Diffstat (limited to 'roles/sshdns/tasks/main.yml')
-rw-r--r-- | roles/sshdns/tasks/main.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/sshdns/tasks/main.yml b/roles/sshdns/tasks/main.yml new file mode 100644 index 0000000..0942e68 --- /dev/null +++ b/roles/sshdns/tasks/main.yml @@ -0,0 +1,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" |