User locking is not idempotent #43670
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
When locking an already locked user Ansible reports a change.
ISSUE TYPE
COMPONENT NAME
user.py
ANSIBLE VERSION
Bug introduced by PR #37962
CONFIGURATION
N/A
OS / ENVIRONMENT
Tested on Ubuntu 16.04, but applicable to other *nix platforms.
STEPS TO REPRODUCE
Run the following playbook multiple times.
EXPECTED RESULTS
The first time this is run the module reports changed. Subsequent runs shouldn't report any change, in order to remain idempotent.
ACTUAL RESULTS
Repeated runs of locking or unlocking the password always report changed.
The text was updated successfully, but these errors were encountered: