Delete NewUser.yml
This commit is contained in:
parent
06b71dfa41
commit
03c9b839ee
13
NewUser.yml
13
NewUser.yml
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Create a new user with root rights
|
|
||||||
hosts: all
|
|
||||||
become: yes # This allows Ansible to run commands as root
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Create user 'joshlaymon' with password '1993llelMO65026' and root rights
|
|
||||||
user:
|
|
||||||
name: joshlaymon
|
|
||||||
password: "{{ '1993llelMO65026' | password_hash('sha512') }}"
|
|
||||||
shell: /bin/bash
|
|
||||||
groups: sudo # Add the user to the sudo group for root access
|
|
||||||
append: yes # Append to existing groups if user already exists
|
|
||||||
Loading…
Reference in New Issue
Block a user