All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Noah Knegt <git@noahknegt.com>
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
---
|
|
# ===================================================================================================
|
|
# ? 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.
|
|
# ===================================================================================================
|
|
- name: Create the group
|
|
group:
|
|
name: noahk
|
|
state: present
|
|
- name: Create the user
|
|
user:
|
|
name: noahk
|
|
group: noahk
|
|
groups: noahk,{{ sudo_group }}
|
|
password: '{{ noahk_password }}'
|
|
state: present
|
|
shell: /bin/bash
|
|
- name: Add user to sudoers
|
|
copy:
|
|
src: noahk/noahk_sudoers
|
|
dest: /etc/sudoers.d/noahk
|
|
owner: root
|
|
group: root
|
|
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
|