This role is able to add/del users/groups, using booleans to activate/deactivate functions.
This role requires Ansible 2.2 or higher, and platform requirements are listed in the metadata file.
Available variables are listed below, along with default values:
loadlist: false
addgroup: false
adduser: false
nonexpiring: false
delgroup: false
deluser: false
showlists: false
password: "{{item.key }}" || "{{ item.value.pwd }}"
shell: "{{ item.value.shell }}"
chg_pwd: "Force-chg-pwd" || "Force-chg-pwd-Non-expiring" || "Do-not-chg-pwd-Non-expiring"
update_pwd: "on_create" || "always"
non_unique: no || yes
createhome: yes || no
There is no dependencies with other roles.
Added module "chage", created by @lqueryvg.
- Add groups from a list in a file, and users from a list in the playbook file.
- Delete users from a list in a file, and groups from a list in the playbook file.
GPLv3