mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-27 23:57:02 +08:00
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:
@@ -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
|
||||
Include /etc/ssh/sshd_config.d/*.conf
|
||||
{% 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
|
||||
|
||||
Reference in New Issue
Block a user