initial checkin

This commit is contained in:
Radar231 2021-07-22 23:14:54 -04:00
commit 8f7ae07b79
2 changed files with 35 additions and 0 deletions

13
README.md Normal file
View File

@ -0,0 +1,13 @@
# Ansible Role: create_user
## Introduction
This role will set up a new user account
NOTE:
The following variables must be specified in the playbook.
* {{ username }}
* {{ userpw }}

22
tasks/main.yml Normal file
View File

@ -0,0 +1,22 @@
---
###########################################################################
#
# This role will set up a new user account
#
###########################################################################
#
# NOTE:
# the following variables must be specified in the playbook
# {{ username }}
# {{ userpw }}
#
###########################################################################
# tasks file for create_user
- name: Create a new user named "{{ username }}"
user:
name: "{{ username }}"
password: "{{ userpw | password_hash('sha512', 'SmrFgsR8') }}"
shell: /bin/bash
# EOF