Commit Graph

5 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov b709007104 Remove sebang from get_users
Shebang is not required for modern ansible versions. But in some cases
it might lead to incorrect behaviour by using incorrect interpreter.

Change-Id: I11763ed4563506b7d25585f8c633df08a123e731
2022-10-04 17:46:24 +02:00
Jonathan Rosser c6703cd5e5 Fix linter errors
Work around the mutually incompatible W503 and W504.

Change-Id: I45d0ca8a911d9cf1af2df52a1cf911db817b13b3
2021-02-02 16:11:03 +02:00
Major Hayden 0e8feaf9eb Verify password age limits [+Docs]
This patch checks for user accounts that have a maximum password age of more
than 60 days. It also extends the `get_users` module to retrieve shadow
database information.

Implements: blueprint security-rhel7-stig
Change-Id: Ida3fd56ee9133dab73f65d47a6934b5596e95b69
2016-12-08 09:44:23 -06:00
Major Hayden 30c225b7ce Extend get_users module to get groups
The get_users module also needs to get group data. This patch adds that
functionality and refactors the module a bit. This is required for
RHEL-07-02300.

Change-Id: Idd57ca197ad69641de7b729e4d75f50d953ea117
2016-12-08 09:44:23 -06:00
Major Hayden 66ebdc9967 Check for users w/o home dirs [+Docs]
This patch adds a new Ansible module called 'get_users' that pulls
a list of users from a system. Tasks are added to check for any users
that don't have a home directory.

Documentation is included.

Implements: blueprint security-rhel7-stig
Change-Id: I53e776659e5a0a3e3235cfa91c2bfcdc35bbf7a9
2016-11-30 15:49:11 +00:00