fix: use global default for password min age
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f6adaca386
commit
fbabf36b43
@ -12,7 +12,7 @@
|
||||
groups: "{{ item.groups | default([]) | join(',') or omit }}"
|
||||
append: "{{ True if (item.groups | default([]) | length > 0) else False }}"
|
||||
password: "{{ item.password | password_hash('sha512',65534 | random(seed=inventory_hostname) | string) if item.password is defined else omit }}"
|
||||
password_expire_min: "{{ item.password_expire_min | default(omit) }}"
|
||||
password_expire_min: "{{ item.password_expire_min | default(users_pass_min_day) }}"
|
||||
shell: "{{ item.shell | default('/bin/bash') }}"
|
||||
loop: "{{ users_default_users }}"
|
||||
loop_control:
|
||||
|
@ -15,7 +15,7 @@
|
||||
groups: "{{ item.groups | default([]) | join(',') or omit }}"
|
||||
append: "{{ True if (item.groups | default([]) | length > 0) else False }}"
|
||||
password: "{{ item.password | default(omit) | password_hash('sha512',65534 | random(seed=inventory_hostname) | string) }}"
|
||||
password_expire_min: "{{ item.password_expire_min | default(omit) }}"
|
||||
password_expire_min: "{{ item.password_expire_min | default(users_pass_min_day) }}"
|
||||
shell: "{{ item.shell | default('/bin/bash') }}"
|
||||
system: "yes"
|
||||
loop: "{{ users_default_users }}"
|
||||
|
Loading…
Reference in New Issue
Block a user