aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/ssh.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/workstation/tasks/ssh.yml')
-rw-r--r--roles/workstation/tasks/ssh.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/workstation/tasks/ssh.yml b/roles/workstation/tasks/ssh.yml
new file mode 100644
index 0000000..318198e
--- /dev/null
+++ b/roles/workstation/tasks/ssh.yml
@@ -0,0 +1,18 @@
+- name: create ssh directory
+ file:
+ path: "/home/{{ workstation_user }}/{{ item }}"
+ owner: "{{ workstation_user }}"
+ group: "{{ workstation_user }}"
+ state: directory
+ mode: 0700
+ loop:
+ - .ssh
+ - .ssh/config.d
+
+- name: generate ssh configuration
+ template:
+ src: ssh.config.j2
+ dest: "/home/{{ workstation_user }}/.ssh/config.d/dns.config"
+ owner: "{{ workstation_user }}"
+ group: "{{ workstation_user }}"
+ mode: 0600
remember that computers suck.