Add borgbackup_user_groups variable

This can be used to add borgbackup user into other groups, which is
helpful when you want borgbackup to read other users files.

Change-Id: I46bcbf56d9f4559de9a8693e8499a97bd400d8df
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-02-16 19:05:14 -05:00
parent ecb92f2dfe
commit ccf6895045
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ borgbackup_user_name: borgbackup
borgbackup_user_group: borgbackup borgbackup_user_group: borgbackup
borgbackup_user_home: /var/lib/borgbackup borgbackup_user_home: /var/lib/borgbackup
borgbackup_user_home_mode: 0755 borgbackup_user_home_mode: 0755
# borgbackup_user_groups:
# borgbackup_user_shell: # borgbackup_user_shell:
# tasks/install.yaml # tasks/install.yaml

View File

@ -22,6 +22,7 @@
user: user:
createhome: true createhome: true
group: "{{ borgbackup_user_group }}" group: "{{ borgbackup_user_group }}"
groups: "{{ borgbackup_user_groups|default(omit) }}"
home: "{{ borgbackup_user_home }}" home: "{{ borgbackup_user_home }}"
name: "{{ borgbackup_user_name }}" name: "{{ borgbackup_user_name }}"
shell: "{{ borgbackup_user_shell|default(omit) }}" shell: "{{ borgbackup_user_shell|default(omit) }}"