summaryrefslogtreecommitdiff
path: root/roles/essential/tasks/main.yml
blob: 66fd9e451ff69b15eafb1751f49a8c3f1c953961 (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
- name: Install essential tools
  ansible.builtin.package:
    name:
      - vim
      - screen
      - git
    state: present

- 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