mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
Credential files are ctually created
This commit is contained in:
parent
0053f18814
commit
fa2404cbb2
1 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,21 @@
|
||||||
---
|
---
|
||||||
# tasks file for skeleton
|
# 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
|
- name: Create backup script
|
||||||
template:
|
template:
|
||||||
src: restic_script_Linux.j2
|
src: restic_script_Linux.j2
|
||||||
|
|
Loading…
Reference in a new issue