aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/sshdns/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/_workstation/sshdns/tasks')
-rw-r--r--roles/_workstation/sshdns/tasks/main.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/_workstation/sshdns/tasks/main.yml b/roles/_workstation/sshdns/tasks/main.yml
new file mode 100644
index 0000000..daf8f61
--- /dev/null
+++ b/roles/_workstation/sshdns/tasks/main.yml
@@ -0,0 +1,17 @@
+---
+
+- name: create config directory
+ file:
+ path: '/home/{{ _ws_user }}/.ssh/config.d'
+ state: directory
+ group: '{{ _ws_user }}'
+ owner: '{{ _ws_user }}'
+ mode: '0700'
+
+- name: generate template to localhost
+ template:
+ src: templates/sshdns.j2
+ dest: '/home/{{ _ws_user }}//.ssh/config.d/ssh_dns'
+ owner: '{{ _ws_user }}'
+ group: '{{ _ws_user }}'
+ mode: '0600'
remember that computers suck.