From 6da5c8b118c433449e8866482098f396355ba67e Mon Sep 17 00:00:00 2001 From: Matthias Leutenegger Date: Thu, 15 Aug 2019 13:01:56 +0200 Subject: [PATCH] adds correct defaults --- defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 092d225..d38f20f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -8,5 +8,5 @@ restic_repos: {} restic_backups: [] restic_create_cron: false -restic_dir_owner: '{{ansible_user}}' -restic_dir_group: '{{ansible_user}}' +restic_dir_owner: '{{ ansible_user | default(ansible_user_id) }}' +restic_dir_group: '{{ ansible_user | default(ansible_user_id) }}'