From fa2404cbb280230f6d0c3a4cdfdb8f0ddf79ac88 Mon Sep 17 00:00:00 2001 From: Matthias Leutenegger Date: Wed, 11 Sep 2019 11:32:07 +0200 Subject: [PATCH] Credential files are ctually created --- tasks/distribution/Linux.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tasks/distribution/Linux.yml b/tasks/distribution/Linux.yml index f3dd049..e1852dc 100644 --- a/tasks/distribution/Linux.yml +++ b/tasks/distribution/Linux.yml @@ -1,6 +1,21 @@ --- # tasks file for skeleton +- name: Create backup credentials + template: + src: restic_access_Linux.j2 + dest: '{{ restic_script_dir }}/access-{{ item.name }}.sh' + mode: '0700' + owner: '{{ restic_dir_owner }}' + group: '{{ restic_dir_group }}' + no_log: true + with_items: '{{ restic_backups }}' + when: + - item.name is defined + - item.src is defined or item.stdin is defined + - item.src is defined or item.stdin and item.stdin_cmd is defined + - item.repo in restic_repos + - name: Create backup script template: src: restic_script_Linux.j2