feat(backup): Default to root user using snapper
If no primary user is defined in the playbooks, we give only the root user access to the snapper command by default.
This commit is contained in:
parent
b3b280fbe4
commit
2400bbf1af
3 changed files with 4 additions and 2 deletions
2
roles/backup/defaults/main.yaml
Normal file
2
roles/backup/defaults/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
# user_name: # required for snapper templates
|
|
@ -14,7 +14,7 @@ SPACE_LIMIT="0.5"
|
|||
FREE_LIMIT="0.2"
|
||||
|
||||
# users and groups allowed to work with config
|
||||
ALLOW_USERS="{{ user_name }}"
|
||||
ALLOW_USERS="{{ user_name | default('root') }}"
|
||||
ALLOW_GROUPS=""
|
||||
|
||||
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
|
||||
|
|
|
@ -14,7 +14,7 @@ SPACE_LIMIT="0.5"
|
|||
FREE_LIMIT="0.2"
|
||||
|
||||
# users and groups allowed to work with config
|
||||
ALLOW_USERS="{{ user_name }}"
|
||||
ALLOW_USERS="{{ user_name | default('root') }}"
|
||||
ALLOW_GROUPS=""
|
||||
|
||||
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
|
||||
|
|
Loading…
Reference in a new issue