ansible/test/integration/targets/user/tasks
Ruediger Pluem 7499848cb1
user - allow local users with an expiry date to be created (#72022) (#72085)
The luseradd / lusermod commands do not support the -e option. Set
the expiry time in this case via lchage after the user was
created / modified.

Fixes: #71942

In Python3 math.floor returns an integer whereas Python2 returns a float.
Hence always convert the result of math.floor to an int to ensure that
lexpires is an integer.

Move local expires tests in a separate file and import the tasks to the
main.yml to keep main.yml smaller.

(cherry picked from commit a7170da851)
2020-10-21 17:04:35 -05:00
..
expires_local.yml user - allow local users with an expiry date to be created (#72022) (#72085) 2020-10-21 17:04:35 -05:00
main.yml user - allow local users with an expiry date to be created (#72022) (#72085) 2020-10-21 17:04:35 -05:00