plumelo.users
users
This role creates and configures system users.
Requirements
This role requires Ansible 2.0 or higher and platform requirements are listed in the metadata file.
Install
ansible-galaxy install plumelo.users
Role Variables
The variables that can be passed to this role and a brief description about them are as follows. For all variables, take a look at defaults/main.yml
# create groups with the same name for each user
users_group_per_user: yes
# choose the user shell(bash,zsh,fish,etc)
users_shell: /bin/bash
# multiple users
users_users: []
Example Playbook
# Install role plumelo.users
- hosts: servers
roles:
- role: plumelo.users
#Create a new user
name: "user"
# list of authorized ssh keys
authorized:
- "ssh-rsa AA...user@domain"
# list of dotifles to create
dotfiles:
- file: '~/.bashrc'
block: |
export LC_ALL="en_US.UTF-8"
marker: "#{mark} Language defaults"
# add user to sudoers
sudo: true
Dependencies
None
License
BSD
Author Information
- plumelo.com
