Bugfix: restic: set root gid auf 0 (#334)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#334
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2022-02-22 10:02:29 +01:00
parent a5da14cae4
commit 428a87144c
2 changed files with 9 additions and 7 deletions

View file

@ -0,0 +1,9 @@
---
- hosts: all
become: yes
tasks:
- name: set root gid to 0
become: true
ansible.builtin.user:
name: root
group: root

View file

@ -5,13 +5,6 @@
name: "{{ restic_group }}"
state: present
- name: ensure user exists
become: true
ansible.builtin.user:
name: "{{ restic_user }}"
group: "{{ restic_group }}"
shell: /usr/sbin/nologin
- name: install restic-packages
become: yes
ansible.builtin.package: