fix: use global default for password min age
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2022-09-20 08:49:42 +02:00
parent f6adaca386
commit fbabf36b43
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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 }}"