From 60edecdb1ace90d0fdcb43835fc50426b190dd82 Mon Sep 17 00:00:00 2001 From: Brice Messeca Date: Thu, 25 Jun 2020 15:20:27 +0200 Subject: [PATCH] fix sftp_directory mix usage (list and dict) --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1324644..da49af1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -48,7 +48,7 @@ AllowTCPForwarding no PermitTunnel no X11Forwarding no - ForceCommand internal-sftp {{ sftp_enable_logging | ternary('-l VERBOSE', '') }} {{ (sftp_start_directory in sftp_directories or sftp_start_directory in sftp_directories | map(attribute='name', default="") | list) | ternary('-d /' + sftp_start_directory, '') }} + ForceCommand internal-sftp {{ sftp_enable_logging | ternary('-l VERBOSE', '') }} {{ (sftp_start_directory in sftp_directories or sftp_start_directory in sftp_directories | selectattr("name", "defined") | map(attribute='name') | list) | ternary('-d /' + sftp_start_directory, '') }} PasswordAuthentication {{ sftp_allow_passwords | ternary('yes', 'no') }} notify: SFTP-Server | Restart sshd