mirror of https://github.com/ansible/ansible.git
user module password expiration fixes (#75390)
* allow inputting 0 for password_expire_{min|max}
0 is meaningful for min days (any time)
0 is technically valid for max_days
* add test for setting both min and max expiry
* [0] return result of execute_command from set_password_expire*
* [1] better return for set_password_expire
* [2] handle returns from set_password_expire*
* only set password expiry if user exists
* collect return-handling code
* combine password min and max into one execution
* handle case where spwd is not present like on macOS and FreeBSD
Co-authored-by: Sam Doran <sdoran@redhat.com>
pull/76845/head
parent
5a69023941
commit
dbde2c2ae3
@ -0,0 +1,3 @@
|
|||||||
|
bugfixes:
|
||||||
|
- user - allow ``password_expiry_min`` and ``password_expiry_min`` to be set to ``0`` (https://github.com/ansible/ansible/issues/75017)
|
||||||
|
- user - allow password min and max to be set at the same time (https://github.com/ansible/ansible/issues/75017)
|
||||||
Loading…
Reference in New Issue