fix(sshd_config.j2): update condition for SFTP subsystem configuration to use common variable
This commit is contained in:
@@ -272,7 +272,7 @@ AcceptEnv LANG LC_*
|
||||
# Configures an external subsystem (e.g. file transfer daemon).
|
||||
# By default no subsystems are defined.
|
||||
{% if ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] | int >= 11 %}
|
||||
{% if sshd_config_sftp.found|int == 0 %}
|
||||
{% if common_sshd_config_sftp.found|int == 0 %}
|
||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||
{% else %}
|
||||
#Subsystem sftp /usr/lib/openssh/sftp-server
|
||||
|
||||
Reference in New Issue
Block a user