Skip to content

Commit

Permalink
fix sftp_directory mix usage (list and dict)
Browse files Browse the repository at this point in the history
  • Loading branch information
smag-bmesseca committed Jun 23, 2020
1 parent d25cb8b commit 6102b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') | 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 | map(attribute='name', default="") | list) | ternary('-d /' + sftp_start_directory, '') }}
PasswordAuthentication {{ sftp_allow_passwords | ternary('yes', 'no') }}
notify: SFTP-Server | Restart sshd

Expand Down

0 comments on commit 6102b79

Please sign in to comment.