1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic.git synced 2024-12-11 23:41:32 +01:00
ansible_role_restic/tasks/preperation.yml

20 lines
561 B
YAML
Raw Normal View History

---
- name: Ensure restic directories exist
ansible.builtin.file:
state: 'directory'
path: '{{ item }}'
mode: '0755'
owner: '{{ restic_dir_owner }}'
group: '{{ restic_dir_group }}'
with_items: '{{ restic_create_paths }}'
- name: Check if downloaded binary is present
ansible.builtin.stat:
path: '{{ restic_download_path }}/bin/restic-{{ restic_version }}'
register: restic_executable
- name: Check if installed binary is present
ansible.builtin.stat:
path: '{{ restic_install_path }}/restic'
register: restic_installed