diff --git a/defaults/main.yaml b/defaults/main.yaml index 0c4e827..ec7e90f 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -23,6 +23,7 @@ borgbackup_user_name: borgbackup borgbackup_user_group: borgbackup borgbackup_user_home: /var/lib/borgbackup borgbackup_user_home_mode: 0755 +# borgbackup_user_groups: # borgbackup_user_shell: # tasks/install.yaml diff --git a/tasks/pre.yaml b/tasks/pre.yaml index 87c393d..a5d8def 100644 --- a/tasks/pre.yaml +++ b/tasks/pre.yaml @@ -22,6 +22,7 @@ user: createhome: true group: "{{ borgbackup_user_group }}" + groups: "{{ borgbackup_user_groups|default(omit) }}" home: "{{ borgbackup_user_home }}" name: "{{ borgbackup_user_name }}" shell: "{{ borgbackup_user_shell|default(omit) }}"