From 8f483a4e6eebc24f1b396529985e36fd8d21d303 Mon Sep 17 00:00:00 2001 From: Matt Willsher Date: Thu, 13 Jun 2024 09:18:03 +0100 Subject: [PATCH] fix: ssh socket template --- templates/sshd.socket.j2 | 4 ++-- vars/Ubuntu_24.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/sshd.socket.j2 b/templates/sshd.socket.j2 index c7a71aa..1185434 100644 --- a/templates/sshd.socket.j2 +++ b/templates/sshd.socket.j2 @@ -14,12 +14,12 @@ Accept=yes {% else %} Accept=no {% endif %} -{% if __sshd_socket_freebind %} +{% if __sshd_socket_freebind is not none %} FreeBind={{ __sshd_socket_freebind }} {% endif %} [Install] WantedBy=sockets.target -{% if __ssh_socket_required_by %} +{% if __ssh_socket_required_by is not none %} RequiredBy=ssh.service {% endif %} diff --git a/vars/Ubuntu_24.yml b/vars/Ubuntu_24.yml index d83b2cb..94617af 100644 --- a/vars/Ubuntu_24.yml +++ b/vars/Ubuntu_24.yml @@ -28,5 +28,5 @@ __sshd_environment_variable: $SSHD_OPTS __sshd_service_after: auditd.service __sshd_service_alias: sshd -__sshd_socket_freebind: "yes" +__sshd_socket_freebind: 'yes' __sshd_socket_required_by: ssh.service