Closed dlouzan closed 2 years ago
nice catch. We would be happy to accept a PR for this. :)
You can create a PR anytime, we only require to Sign-off your commits and to pass our CI tests.
@schurzi I will provide a patch this week, thanks again for the awesome project, we at Siemens are big fans 😁
Actually this also affects redhat pam files, I just had not experienced it yet because the way I was disabling some settings.
Describe the bug
When calling the role os_hardening passing the variable
os_auth_retries
defined invars
as part ofinclude_role
, some comparison guards inpam_debian.yml
cause an exception. It appears that the variable passed viavars
is a string, but the comparison guards expect an int without type casting it.Example case:
this produces:
According to some ansible upstream issues, the actual role code should be the one doing the type casting to the expected type, see e.g. https://github.com/ansible/ansible/issues/13574#issuecomment-174639586
Indeed, manually modifying the local checkout of the os_hardening role and modifying the entries to use the following does solve the problem:
I could provide a patch but I'd just like to get first a heads-up about the approach. Thanks!
OS / Environment
macOS 12.6
Ansible Version
Role Version