initial checkin
This commit is contained in:
commit
8f7ae07b79
|
@ -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 }}
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue