ansible/ansible-modules-core — pull request #41 by billwanjohi (2014-09-29 23:00:44+00:00)
Title: user: add expired state

(Ported from https://github.com/ansible/ansible/pull/6303)

It's very useful and routine to disable a *nix user.
I implemented expired instead of locked because this prevents any use of
the account, safer than just preventing password-based authentication.

I have tests [1], but since none of the suite came along with the core
modules, I'm unsure how to submit them. Discussed in #40.

[1] https://github.com/billwanjohi/ansible/blob/add_locked_state/test/integration/roles/test_user/tasks/main.yml