Skip to content
Snippets Groups Projects
Commit e3504580 authored by Thomas Juberg's avatar Thomas Juberg
Browse files

Add support for setting user expire

parent c237912a
Branches
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ users:
password: $6$w.............
home: /custom/buser
createhome: True
expire: 16426
sudouser: True
sudo_rules:
- ALL=(root) /usr/bin/find
......
......@@ -58,6 +58,9 @@
{% if not user.get('createhome', True) %}
- createhome: False
{% endif %}
{% if 'expire' in user -%}
- expire: {{ user['expire'] }}
{% endif -%}
- remove_groups: {{ user.get('remove_groups', 'False') }}
- groups:
- {{ user_group }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment