From e9d2a2307fd3794aaf0bef7b0abb671151500fad Mon Sep 17 00:00:00 2001 From: Abhishek The geek guy <49309405+ignitor07@users.noreply.github.com> Date: Fri, 2 Oct 2020 00:30:12 +0530 Subject: [PATCH] user.yml This playbook will create a groups and user through ansible. --- user.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 user.yml diff --git a/user.yml b/user.yml new file mode 100644 index 000000000..049850f52 --- /dev/null +++ b/user.yml @@ -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"