Browse Source

Setup user account

pull/1/head
Sebastian Wiesner 2 months ago
parent
commit
beebd94483
2 changed files with 13 additions and 1 deletions
  1. +3
    -0
      host_vars/kasterl.yaml
  2. +10
    -1
      roles/arch-base/tasks/main.yml

+ 3
- 0
host_vars/kasterl.yaml View File

@@ -56,3 +56,6 @@ mkinitcpio_hooks:
mkinitcpio_modules:
# Early KMS
- i915
user_me:
name: basti
comment: Basti

+ 10
- 1
roles/arch-base/tasks/main.yml View File

@@ -1,4 +1,3 @@
# TODO: Create user with groups
# TODO: Setup bootloader

- name: Turn off PC speaker
@@ -210,6 +209,16 @@
%wheel ALL=(ALL:ALL) ALL
mode: "0600"

- name: Create my user account
user:
name: "{{ user_me.name }}"
shell: /usr/bin/fish
comment: "{{ user_me.comment }}"
# Add the user to the wheel group but don't overwrite groups if the user
# already exists
groups: [wheel]
append: true

- name: Configure NTP servers for systemd-timesyncd
lineinfile:
dest: /etc/systemd/timesyncd.conf


Loading…
Cancel
Save