Oefenweb.user
user
Manages user and group accounts.
Requirements
None
Variables
user_groups: [default:[]]: Group declarationsuser_groups.{n}.name: [required]: The name of the group to manageuser_groups.{n}.gid: [optional]: GID to set for the groupuser_groups.{n}.system: [default:false]: Iftrue, indicates that the group created is a system groupuser_groups.{n}.state: [default:present]: Whether the group should be present or not on the remote hostuser_users: [default:[]]: User declarationsuser_users.{n}.name: [required]: The name of the user to manageuser_users.{n}.uid: [optional]: UID to set for the useruser_users.{n}.comment: [default:'']: Sets the description (akaGECOS) of user accountuser_users.{n}.group: [default:name]: Sets the user's primary group (takes a group name)user_users.{n}.groups: [default:[]]: Puts the user in this list of groups. When set to[], the user is removed from all groups except the primary groupuser_users.{n}.append: [default:false]: Iftrue, will only add groups, not set them to just the list in groupsuser_users.{n}.password: [default:*]: Sets the user's password to this crypted valueuser_users.{n}.update_password: [default:always]:alwayswill update passwords if they differ.on_createwill only set the password for newly created usersuser_users.{n}.shell: [default:/bin/bash]: Sets the user's shelluser_users.{n}.home: [default:/home/nameor/nameforroot]: Sets the user's home directoryuser_users.{n}.dir_mode: [optional]: The mode the home directory (e.g.0755,0700)user_users.{n}.system: [default:false]: Iftrue, indicates that the user created is a system useruser_users.{n}.state: [default:present]: Whether the user should be present or not on the remote hostuser_users.{n}.remove: [default:false]: When used withstate=absent, behavior is as withuserdel --remove
Dependencies
None
Example
---
- hosts: all
roles:
- oefenweb.user
License
MIT
Author Information
Mischa ter Smitten
Feedback, bug-reports, requests, ...
Are welcome!
ansible-galaxy install Oefenweb.user