Would a patch that adds two new states, locked and unlocked, be accepted into the user module?
My use case is this: I have a lot of machines with lots of different users that have access to different machines. (i.e. It's not known ahead of time all of the machines a user has access to.) A user quits/retires/gets fired and I need to lock their account across all of the machines.
I currently have a play book that checks if they exist on a given machine and then if they do locks their account. While not critical I think it would be nice to do this with the user module. Something like this:
name: lock joes account
user: name=joe state=locked
Which would check if they exist and if they do lock the account (if not already locked). The unlock state would obviously do the opposite.