community.general/lib/ansible/modules/system
billwanjohi b019076dd3 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.

[1] https://github.com/billwanjohi/ansible/blob/add_locked_state/test/integration/roles/test_user/tasks/main.yml
2016-12-08 11:22:35 -05:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
authorized_key.py Typo in comments 2016-12-08 11:22:28 -05:00
cron.py Update cron example for setting to run twice a day 2016-12-08 11:22:31 -05:00
group.py file extensions! 2016-12-08 11:22:22 -05:00
hostname.py Fixed hostname for rhel5 python 2.4.3 2016-12-08 11:22:33 -05:00
mount.py Remove incorrect executable permissions. 2016-12-08 11:22:26 -05:00
ping.py file extensions! 2016-12-08 11:22:22 -05:00
seboolean.py file extensions! 2016-12-08 11:22:22 -05:00
selinux.py Set selinux state to 'permissive' for state=disabled 2016-12-08 11:22:35 -05:00
service.py vastly simplified systemd detection, made enable/disable errors clearer both of which allows us to remove 'service name detection' as if systemd is init we still use it to handle initscripts. 2016-12-08 11:22:31 -05:00
setup.py file extensions! 2016-12-08 11:22:22 -05:00
sysctl.py Fixed typo 2016-12-08 11:22:28 -05:00
user.py user: add expired state 2016-12-08 11:22:35 -05:00