Fix sshd_config for Fedora 36+
I have probably made this a bit wordy but I have found long jinja2 logic statements to be a bit hard to debug or go off the rails. So I copied the section for Red Hat and used it for Fedora. Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
This commit is contained in:
parent
d3b4521668
commit
b5e7db6b83
1 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,11 @@ MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@op
|
||||||
# /etc/ssh/sshd_config.d/ which will be automatically included below
|
# /etc/ssh/sshd_config.d/ which will be automatically included below
|
||||||
Include /etc/ssh/sshd_config.d/*.conf
|
Include /etc/ssh/sshd_config.d/*.conf
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if ansible_distribution_major_version|int >= 36 and ansible_distribution == 'Fedora' %}
|
||||||
|
# To modify the system-wide sshd configuration, create a *.conf file under
|
||||||
|
# /etc/ssh/sshd_config.d/ which will be automatically included below
|
||||||
|
Include /etc/ssh/sshd_config.d/*.conf
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
HostKey /etc/ssh/ssh_host_rsa_key
|
HostKey /etc/ssh/ssh_host_rsa_key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue