diff --git a/group_vars/all/main.yml b/group_vars/all/main.yml index 37bd69b..39dcf9a 100644 --- a/group_vars/all/main.yml +++ b/group_vars/all/main.yml @@ -2529,6 +2529,14 @@ sftp_password_authentication: !!str "no" # ~/.ssh/authorized_keys # password: password hash (optional, default: unchanged) # update_password: always | on_create (optional, default: always) +# upload_dir: path relative to home (optional) +# upload_target: absolute path inside home (optional) +# +# 'upload_dir' without 'upload_target' is a directory owned by the user. +# With 'upload_target' it is a (relative) symlink to that directory. The +# target must exist and must be inside the home (= chroot) - a symlink +# pointing outside the chroot can't be followed by the sftp user. An +# existing file/directory at 'upload_dir' is never replaced. # # ~/.ssh and ~/.ssh/authorized_keys are always created (owned by the # user), an existing authorized_keys is never truncated. Without @@ -2560,6 +2568,8 @@ sftp_password_authentication: !!str "no" # # - name: www-data # existing_user: true +# upload_dir: upload +# upload_target: /var/www/html/site # ssh_keys: # - 'ssh-ed25519 AAAA... user@host' #