user module can't handle password expiration parameters correctly #75017
Labels
affects_2.12
bug
This issue/PR relates to a bug.
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
P3
Priority 3 - Approved, No Time Limitation
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Summary
When using the user module to modify password_expire_min=0, the processing result does not meet expectations .
I guess the problem is caused by the following code in the user module.
Modifying to the following code may fix this problem.
Issue Type
Bug Report
Component Name
user
Ansible Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
RHEL 7.4
Steps to Reproduce
user:
name: test
password_expire_min: 0
Expected Results
Minimum number of days between password change : 0
Actual Results
Minimum number of days between password change : 2
Code of Conduct
The text was updated successfully, but these errors were encountered: