mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-13 05:10:18 +01:00
20 lines
606 B
YAML
20 lines
606 B
YAML
---
|
|
- name: (PREPARE) Ensure restic directories exist
|
|
become: true
|
|
ansible.builtin.file:
|
|
state: 'directory'
|
|
path: '{{ item }}'
|
|
mode: '0755'
|
|
owner: '{{ restic_dir_owner }}'
|
|
group: '{{ restic_dir_group }}'
|
|
with_items: '{{ restic_create_paths }}'
|
|
|
|
- name: (PREPARE) Check if downloaded binary is present
|
|
ansible.builtin.stat:
|
|
path: '{{ restic_download_path }}/bin/restic-{{ restic_version }}'
|
|
register: restic_executable
|
|
|
|
- name: (PREPARE) Check if installed binary is present
|
|
ansible.builtin.stat:
|
|
path: '{{ restic_install_path }}/restic'
|
|
register: restic_installed
|