Skip to content

artcom/ansible-role-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User

Ansible role for configuring a user

Requirements

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

user_name: null
user_password: null
user_passwordless_sudo: true
user_authorized_keys: {}

Required variables (role will fail if the variables are not set):

user_name: "string"

The user is created with given password, home folder and bash shell. User is added to sudo group and passwordless sudo is configured for that user. Public keys in user_authorized_keys are written to user's ~/.ssh/authorized_keys.

Test

Requirements

  • uv
  • docker

Run

uv sync --locked
uv run molecule test

Invoke tasks

uv run invoke --list
uv run invoke bump --patch
uv run invoke format

About

Ansible role to configure a Linux user

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages