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:
parent
ecb92f2dfe
commit
ccf6895045
@ -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
|
||||||
|
@ -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) }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user