diff --git a/defaults/main.yml b/defaults/main.yml index f1b52a4..9eb1423 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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' diff --git a/tasks/install.yml b/tasks/install.yml index f70dfc8..a83fcc8 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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'