diff --git a/roles/users/tasks/btrbk.yml b/roles/users/tasks/btrbk.yml index 35bf8a1..073c8fd 100644 --- a/roles/users/tasks/btrbk.yml +++ b/roles/users/tasks/btrbk.yml @@ -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