-
Notifications
You must be signed in to change notification settings - Fork 138
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
SSH is reloaded by default even if sshd_manage_service is set to false #236
Comments
When this was introduced in bcd864f, the documentation was matching the code. But it is "broken" since 43ed7c1 which dropped the assignment. I am worried that the problem with such assignment might have issues with the variable precedence (would have to double-check though). Do you want to open a PR with this change, ideally also with a reproducer tests to verify that it works as expected in the testing environment (probably only by checking variables as they are based on containers and do not have services running)? |
@mattwillsher the change wont be that easy as proposed in the issue. I think the defaults/main.yml are evaluated before the user variables are considered so it might be easier to update documentation ... |
It depends - variables defined in defaults/main.yml, and in |
I was thinking update the docs, which seems to be the original ask? Could the logic be moved into the when clause for the AIX reload? |
Ah, ok. Works for me.
|
This did not work since 43ed7c1, for over 7 years so instead of restoring this behavior, updating documentation to match current beharior sounds more reasonable. Fixes: willshersystems#236 Signed-off-by: Jakub Jelen <[email protected]>
it does not sounds very convincing :) In any case, I guess we would need some test coverage. On the other hand, the semantics of defaults depending on other variable sounds awkward. And given that this really did not work for last 7 years, adjusting the documentation to match reality sounds like the best. Added to #303. |
This did not work since 43ed7c1, for over 7 years so instead of restoring this behavior, updating documentation to match current beharior sounds more reasonable. Fixes: #236 Signed-off-by: Jakub Jelen <[email protected]>
Hello,
The documentation states that :
but the default variables set
sshd_allow_reload
totrue
: https://github.com/willshersystems/ansible-sshd/blob/master/defaults/main.yml#L14So either the documentation is wrong and should be corrected, or the defaults file should be changed like this:
Thank you for reading :)
The text was updated successfully, but these errors were encountered: