23 lines
597 B
YAML
23 lines
597 B
YAML
---
|
|
###########################################################################
|
|
#
|
|
# 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
|