update state

This commit is contained in:
DerLinkman
2026-02-20 22:19:57 +01:00
parent 0ef603638c
commit ffc1a6a8a5
8 changed files with 63 additions and 9 deletions
@@ -0,0 +1,15 @@
---
- name: Create admin user
user:
name: admin
groups: sudo
shell: /bin/bash
createhome: yes
state: present
- name: Set sudo privileges for admin user
lineinfile:
path: /etc/sudoers.d/10-admin
line: "admin ALL=(ALL) NOPASSWD:ALL"
validate: 'visudo -cf %s'
state: present
+6
View File
@@ -0,0 +1,6 @@
---
- name: Install sudo
apt:
name: sudo
state: present
become: yes