Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.

Create a home directory for the restic user #26

Merged
merged 1 commit into from
Aug 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ restic_version: '0.8.3'

restic_user: root
restic_group: "{{ restic_user }}"
restic_home: "/var/lib/restic"

restic_install_path: '/usr/local/bin'

Expand Down
3 changes: 2 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
group: "{{ restic_group }}"
shell: /bin/false
system: true
createhome: false
createhome: true
home: "{{ restic_home }}"
state: present
when: restic_user != 'root'

Expand Down