From 4a852a9f52eea78dcb64aebe49d61125cd966249 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 30 Dec 2023 18:46:31 +0100 Subject: [PATCH] updated the instructions to ease the installation process --- README.md | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 321ef65..6e0e47d 100644 --- a/README.md +++ b/README.md @@ -9,29 +9,23 @@ Laptop configuration for Arch Linux ## Setup -### Setup as the `root` user +### Setup the variables needed for running the playbook ```bash -# Install the necessary dependencies -pacman -Syy ansible git which sudo bash - -# Allow the "sudo" group to issue sudo commands -sed -i 's/#\s*%sudo/%sudo/g' /etc/sudoers - -# Create a new user -useradd --create-home user - -# Add a password for the newly created user -passwd user - -# Add the sudo group -groupadd sudo - -# Add the "sudo" group for the created user -usermod --add --groups sudo user +touch ansible/roles/user/vars/main.yml ``` -### Setup as the created user +```yaml +--- +user: + name: "change-me" + password: "change-me" + groups: sudo + uid: 1000 + shell: /bin/fish +root: + shell: /bin/fish +``` #### Installation of the necessary dependencies