silvinux.manage-users
README.md
Ansible Role: manage-users 1.0
This role can add or delete users and groups, using simple true/false options to turn functions on or off.
Requirements
You need Ansible version 2.2 or higher for this role, and specific platform needs can be found in the metadata file.
Role Variables
Here are the available variables with their default settings:
Turn functions on or off
- loadlist: false
- addgroup: false
- adduser: false
- nonexpiring: false
- delgroup: false
- deluser: false
- showlists: false
User Settings - Adding Users
- password: "{{item.key }}" or "{{ item.value.pwd }}"
- shell: "{{ item.value.shell }}"
- chg_pwd: "Force-chg-pwd" or "Force-chg-pwd-Non-expiring" or "Do-not-chg-pwd-Non-expiring"
- update_pwd: "on_create" or "always"
- non_unique: no or yes
- createhome: yes or no
Dependencies
This role does not depend on any other roles.
Modules
Includes the "chage" module, created by @lqueryvg.
Example Playbook
- Add groups from a file and users from the playbook file.
- Delete users from a file and groups from the playbook file.
License
GPLv3
Informazioni sul progetto
User/Groups management (add/del)
Installa
ansible-galaxy install silvinux.manage-users
Licenza
Unknown
Download
72
Proprietario
I'm an IT freaky, that love to deploy (free software/ OpenSource) technologies in little projects at my home and this blog is a series of docs/manuals/guides