From 428a87144c95dc1e5703cb1861a710155218e3e4 Mon Sep 17 00:00:00 2001 From: mg Date: Tue, 22 Feb 2022 10:02:29 +0100 Subject: [PATCH] Bugfix: restic: set root gid auf 0 (#334) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/334 Co-authored-by: mg Co-committed-by: mg --- playbooks/on-off/set_id0.yml | 9 +++++++++ roles/mgrote.restic/tasks/main.yml | 7 ------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 playbooks/on-off/set_id0.yml diff --git a/playbooks/on-off/set_id0.yml b/playbooks/on-off/set_id0.yml new file mode 100644 index 00000000..4636177d --- /dev/null +++ b/playbooks/on-off/set_id0.yml @@ -0,0 +1,9 @@ +--- +- hosts: all + become: yes + tasks: + - name: set root gid to 0 + become: true + ansible.builtin.user: + name: root + group: root diff --git a/roles/mgrote.restic/tasks/main.yml b/roles/mgrote.restic/tasks/main.yml index e181a7f9..b1ba785a 100644 --- a/roles/mgrote.restic/tasks/main.yml +++ b/roles/mgrote.restic/tasks/main.yml @@ -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: