mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-12 04:40:19 +01:00
10 lines
320 B
YAML
10 lines
320 B
YAML
---
|
|
- name: (RUN BACKUP) Run backup script
|
|
ansible.builtin.command:
|
|
cmd: "/usr/bin/env sh {{ restic_script_dir }}/backup-{{ item.name | replace(' ', '') }}.sh"
|
|
no_log: "{{ restic_no_log }}"
|
|
with_items: '{{ restic_backups }}'
|
|
when:
|
|
- item.name is defined
|
|
register: result
|
|
changed_when: result.rc != 0
|