optionally add btrbk to syslog group

main
Ricard Illa 2022-11-06 13:50:16 +01:00
parent b91eb36ca9
commit 135c6c3715
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,15 @@
- wheel
append: true
- name: additional groups to btrbk
user:
name: btrbk
groups: "{{item}}"
append: true
when: item in ansible_facts.getent_group
with_items:
- syslog
- name: make sure btrbk owns its home
file:
state: directory