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) }}'