Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove conditionals in sshd role for enabling/disabling password auth and root login #40

Open
Alex-Bron opened this issue Feb 22, 2021 · 0 comments

Comments

@Alex-Bron
Copy link

Currently the sshd role has a task for enabling / disabling password authentication and for enabling / disabling root login via ssh. Both tasks are conditional:
when: not sshd_allow_password_login
and
when: not sshd_allow_root_login
This works nice in the case the setting needs to be disabled. However if you want to enable one of these using this role, it will not work as the conditional makes the task skip in that case.
By removing the conditional, the tasks work both ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant