diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-06-28 22:47:11 +0200 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-06-28 23:18:35 +0200 |
| commit | 7d96c1a11fc442b4efddf9ce5250cf0a9dfaf02e (patch) | |
| tree | 5561dbeee61aaab05e21f3bc2895ff703a2ce137 /defaults | |
| parent | 785e6c88e4c0a3ccc44fd357b4f693c5aadd432c (diff) | |
| download | ansible-role-borgbackup-7d96c1a11fc442b4efddf9ce5250cf0a9dfaf02e.tar.gz ansible-role-borgbackup-7d96c1a11fc442b4efddf9ce5250cf0a9dfaf02e.zip | |
Parametrize server-side borg user
Adds option to choose a non-default borg backup user on the server.
Diffstat (limited to 'defaults')
| -rw-r--r-- | defaults/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/defaults/main.yml b/defaults/main.yml index c4b481e..2d71d58 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -54,6 +54,17 @@ borg_ssh_key_per_repo: false # hostnames are globally reachable. borg_server_host_url: "{{ borg_server_host }}" +# The user that runs borg serve on the backup server. +# Defaults to 'borg'. The user must exist before running the role +# unless borg_server_user_create is true. +# Change this if your server uses a different borg user. +borg_server_user: borg + +# Whether to automatically create the borg_server_user on the server. +# When true (default), the user is created automatically. +# When false, the user must exist before running the role. +borg_server_user_create: true + # The home directory of the borg user that is created on the borg server. # All borg borg client repositories will be saved in this directory on the borg # server. e.g. /opt/borg/client1 /opt/borg/client2 |