Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

user.yml #286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#this ansible playbook will create groups and user with password using sha256 using ansible playbook
- hosts: all
tasks:
- user:
name: "name_of_user"
uid: "uid"
groups: "optional"
password: "{{ p | password_hash('sha256') }}"
- groups:
name: "name of the group"