updated instructions

This commit is contained in:
aminnairi
2023-12-31 18:36:01 +01:00
parent eb6a77119f
commit 1858c123e9
+16 -16
View File
@@ -9,26 +9,26 @@ Laptop configuration for Arch Linux
## Setup
### Setup the variables needed for running the playbook
### Create the user as administrator
```bash
mkdir --parent ansible/roles/user/vars
touch ansible/roles/user/vars/main.yml
# Install the necessary dependencies
pacman -S sudo fish git
# Allow members of the group "sudo" to issue sudo commands
sed -i 's/# %sudo/%sudo/g' /etc/sudoers
# Add the "sudo" group
groupadd sudo
# Add the unprivileged user
useradd --create-home --shell --groups sudo --uid 1000 /bin/fish user
# Setup the password for the unprivileged user
passwd user
```
```yaml
---
user:
name: "change-me"
password: "change-me"
groups: sudo
uid: 1000
shell: /bin/fish
root:
shell: /bin/fish
```
### Laptop installation
### Laptop installation as user
```bash
# Clone the repository