You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: