2023-07-14 12:33:16 +02:00
|
|
|
---
|
2023-03-30 14:28:10 +02:00
|
|
|
# ===================================================================================================
|
2023-02-27 16:39:00 +01:00
|
|
|
# ? ABOUT
|
|
|
|
|
# @author : Noah Knegt
|
|
|
|
|
# @email : personal@noahknegt.com
|
|
|
|
|
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
|
|
|
|
# @createdOn : 27-02-2023
|
|
|
|
|
# @description : This will setup the normal user on the machine.
|
2023-03-30 14:28:10 +02:00
|
|
|
# ===================================================================================================
|
2023-02-27 16:39:00 +01:00
|
|
|
- name: Create the group
|
|
|
|
|
group:
|
|
|
|
|
name: noahk
|
|
|
|
|
state: present
|
|
|
|
|
- name: Create the user
|
|
|
|
|
user:
|
|
|
|
|
name: noahk
|
|
|
|
|
group: noahk
|
|
|
|
|
groups: noahk,{{ sudo_group }}
|
2023-07-14 12:33:16 +02:00
|
|
|
password: '{{ noahk_password }}'
|
2023-02-27 16:39:00 +01:00
|
|
|
state: present
|
|
|
|
|
shell: /bin/bash
|
|
|
|
|
- name: Add user to sudoers
|
|
|
|
|
copy:
|
2023-02-27 17:12:08 +01:00
|
|
|
src: noahk/noahk_sudoers
|
2023-02-27 16:39:00 +01:00
|
|
|
dest: /etc/sudoers.d/noahk
|
|
|
|
|
owner: root
|
|
|
|
|
group: root
|
2023-07-14 12:33:16 +02:00
|
|
|
mode: 440
|
|
|
|
|
- name: Clone the .config repo
|
|
|
|
|
git:
|
|
|
|
|
repo: https://git.noahknegt.com/noah.knegt/.config.git
|
|
|
|
|
dest: /home/noah/.config
|
|
|
|
|
clone: true
|
|
|
|
|
update: true
|