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:
parent
a5da14cae4
commit
428a87144c
2 changed files with 9 additions and 7 deletions
9
playbooks/on-off/set_id0.yml
Normal file
9
playbooks/on-off/set_id0.yml
Normal 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
|
|
@ -5,13 +5,6 @@
|
||||||
name: "{{ restic_group }}"
|
name: "{{ restic_group }}"
|
||||||
state: present
|
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
|
- name: install restic-packages
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
|
|
Loading…
Reference in a new issue