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

Allow putting the ssh/sshd config in alternative files #348

Closed
sprat opened this issue Dec 14, 2020 · 2 comments · Fixed by #350
Closed

Allow putting the ssh/sshd config in alternative files #348

sprat opened this issue Dec 14, 2020 · 2 comments · Fixed by #350

Comments

@sprat
Copy link
Contributor

sprat commented Dec 14, 2020

Is your feature request related to a problem? Please describe.
In debian/ubuntu distro, we should probably put the ssh and sshd configs in /etc/ssh/ssh_config.d and /etc/ssh/sshd_config.d to avoid package update problems. So it would be nice if it could be configured in the role.

Describe the solution you'd like
Add two variables to set the config paths, defaulting to the currently used paths.

Describe alternatives you've considered
None

Additional context
I don't want the files to be overwritten by a package update

@sprat
Copy link
Contributor Author

sprat commented Dec 14, 2020

I have opened many issues today, I will probably create some pull requests to fix them if you are ok with that.

@rndmh3ro
Copy link
Member

So it would be nice if it could be configured in the role.

Yes, seems sensible.

I don't want the files to be overwritten by a package update

This should never happen on a update of a package. The default behaviour is (IMO) to put the new file next to the old.

I have opened many issues today, I will probably create some pull requests to fix them if you are ok with that.

Sounds great!

rndmh3ro pushed a commit that referenced this issue Dec 16, 2020
Signed-off-by: Sylvain Prat <sylvain.prat@gmail.com>
divialth pushed a commit to divialth/ansible-collection-hardening that referenced this issue Aug 3, 2022
…-sec#350)

Signed-off-by: Sylvain Prat <sylvain.prat@gmail.com>
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

Successfully merging a pull request may close this issue.

2 participants