blob: add5757f0280cdb35a44edb75d683ac78309316a (
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
|
- name: Remove default arch user
ansible.builtin.user:
name: arch
state: absent
- name: Create user for Dmitry Ilvokhin
ansible.builtin.user:
name: d
home: /home/d
groups:
- wheel
- 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
- name: Update authorized_keys for Dmitry Ilvokhin
ansible.builtin.copy:
src: roles/essential/files/id_rsa.pub
dest: /home/d/.ssh/authorized_keys
owner: d
group: d
mode: u+rw,g-rwx,o-rwx
|