Skip to content

expansible/generic-users

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANXS - generic-users Build Status

Ansible role which manages the groups and user accounts.

Requirements & Dependencies

  • Tested on Ansible 1.4 or higher.

Variables

genericusers_groups:
  - name: "dbadmins"
    gid: 5000
    system: no
  - name: "mailadmins"
    gid: 6000
    system: no

genericusers_groups_removed:
  - name: "defunctadmins"

genericusers_users:
  - name: "foo"
    groups: ["admin", "staff", "devops"]
    ssh_keys:
      - "ssh-dss ......."
      - "ssh-dss ......."
    append: "no"        # If yes, will only add groups, not set them to just the list in groups.
    pass: "$6$...."     # Set the user's password to this crypted value.
    comment: "foo acc"  # 
    shell: "/bin/bash"  # Set the user's shell.
    home: "/home/baz"   # Set the user's home directory.
    system: no          # Make the user a system account or not.
  - name: "bar"
    groups: ["admin", "staff", "dev"]
    ssh_keys: []

genericusers_users_removed:
  - name: baz

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role for managing user accounts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published