Add support for setting user expire
This commit is contained in:
parent
c237912af0
commit
e35045801c
@ -9,6 +9,7 @@ users:
|
|||||||
password: $6$w.............
|
password: $6$w.............
|
||||||
home: /custom/buser
|
home: /custom/buser
|
||||||
createhome: True
|
createhome: True
|
||||||
|
expire: 16426
|
||||||
sudouser: True
|
sudouser: True
|
||||||
sudo_rules:
|
sudo_rules:
|
||||||
- ALL=(root) /usr/bin/find
|
- ALL=(root) /usr/bin/find
|
||||||
|
@ -58,6 +58,9 @@
|
|||||||
{% if not user.get('createhome', True) %}
|
{% if not user.get('createhome', True) %}
|
||||||
- createhome: False
|
- createhome: False
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if 'expire' in user -%}
|
||||||
|
- expire: {{ user['expire'] }}
|
||||||
|
{% endif -%}
|
||||||
- remove_groups: {{ user.get('remove_groups', 'False') }}
|
- remove_groups: {{ user.get('remove_groups', 'False') }}
|
||||||
- groups:
|
- groups:
|
||||||
- {{ user_group }}
|
- {{ user_group }}
|
||||||
|
Loading…
Reference in New Issue
Block a user