blob: 922832f724ea8ae11d685b9eda3901a09078e290 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
- name: Setup SSH directory for Dmitry Ilvokhin
ansible.builtin.file:
path: /home/d/.ssh
state: directory
owner: d
group: d
mode: u+rw,g-wx,o-rwx
tags:
- dotfiles
- name: Update authorized_keys for Dmitry Ilvokhin
ansible.posix.authorized_key:
user: d
state: present
key: '{{ item }}'
with_file:
- misc/pubkeys/d.pub
tags:
- dotfiles
- name: Configure ssh for Dmitry Ilvokhin
ansible.builtin.template:
src: misc/dotfiles/ssh/config.j2
dest: "~{{ user }}/.ssh/config"
owner: "{{ user }}"
mode: u+rw,g-rw,o-rw
when:
- jumphost
tags:
- dotfiles
- name: Add ssh rc for Dmitry Ilvokhin
ansible.builtin.copy:
src: misc/dotfiles/ssh/rc
dest: "~{{ user }}/.ssh/rc"
owner: "{{ user }}"
mode: u+rwx,g-rw,o-rw
when:
- jumphost
tags:
- dotfiles
|