aboutsummaryrefslogblamecommitdiffstats
path: root/roles/workstation/tasks/ssh.yml
blob: d09c7f8acc55eca7d29c20ba5a81e21cb0e88b9e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                            
                       









                                                   
                           




                                                                 
- name: create ssh directory
  ansible.builtin.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
  ansible.builtin.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.