Merge pull request #79 from iamseth/master
Adding support for the enforce_password option.
This commit is contained in:
commit
5e91782cbe
@ -7,6 +7,7 @@ users:
|
|||||||
buser:
|
buser:
|
||||||
fullname: B User
|
fullname: B User
|
||||||
password: $6$w.............
|
password: $6$w.............
|
||||||
|
enforce_password: True
|
||||||
home: /custom/buser
|
home: /custom/buser
|
||||||
createhome: True
|
createhome: True
|
||||||
manage_vimrc: False
|
manage_vimrc: False
|
||||||
|
@ -72,6 +72,9 @@ users_{{ name }}_user:
|
|||||||
{% if 'password' in user -%}
|
{% if 'password' in user -%}
|
||||||
- password: '{{ user['password'] }}'
|
- password: '{{ user['password'] }}'
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
{% if 'enforce_password' in user -%}
|
||||||
|
- enforce_password: '{{ user['enforce_password'] }}'
|
||||||
|
{% endif -%}
|
||||||
{% if user.get('system', False) -%}
|
{% if user.get('system', False) -%}
|
||||||
- system: True
|
- system: True
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user