2019-08-13 13:26:40 +02:00
|
|
|
---
|
2020-12-07 18:32:04 +01:00
|
|
|
- include_tasks: versioncheck.yml
|
|
|
|
when: submodules_versioncheck|bool
|
2019-08-13 13:26:40 +02:00
|
|
|
|
2020-12-09 17:26:16 +01:00
|
|
|
- name: use template
|
|
|
|
template:
|
|
|
|
src: templates/restic_forget_snapshots.j2
|
|
|
|
dest: /tmp/test
|
2020-12-09 17:42:54 +01:00
|
|
|
group: "{{ restic_archiver__dir_owner }}"
|
|
|
|
owner: "{{ restic_archiver__dir_group }}"
|
2020-12-09 17:54:53 +01:00
|
|
|
mode: 0700
|
2020-12-10 19:44:40 +01:00
|
|
|
# no_log: true
|
2020-12-09 17:42:54 +01:00
|
|
|
|
2020-12-09 17:26:16 +01:00
|
|
|
|
|
|
|
#- include_tasks: template.yml
|
2020-12-09 14:36:46 +01:00
|
|
|
|
|
|
|
#- name: add OS specific variables
|
|
|
|
# include_vars: '{{ loop_vars }}'
|
|
|
|
# with_first_found:
|
|
|
|
# - files:
|
|
|
|
# - '{{ distribution }}-{{ distribution_version }}.yml'
|
|
|
|
# - '{{ distribution }}-{{ distribution_major_version }}.yml'
|
|
|
|
# - '{{ distribution }}.yml'
|
|
|
|
# - '{{ ansible_os_family }}.yml'
|
|
|
|
# - '{{ ansible_system }}.yml'
|
|
|
|
# - 'defaults.yml'
|
|
|
|
# paths:
|
|
|
|
## - 'vars'
|
|
|
|
# loop_control:
|
|
|
|
# loop_var: loop_vars
|
|
|
|
# vars:
|
|
|
|
# distribution: '{{ ansible_distribution }}'
|
|
|
|
# distribution_version: '{{ ansible_distribution_version }}'
|
|
|
|
# distribution_major_version: '{{ ansible_distribution_major_version }}'
|
|
|
|
# tags:
|
|
|
|
# - configuration
|
|
|
|
# - packages
|
2019-08-13 13:26:40 +02:00
|
|
|
|
2020-12-09 17:26:16 +01:00
|
|
|
#- name: Ensure restic directories exist
|
|
|
|
# file:
|
|
|
|
# state: 'directory'
|
|
|
|
# path: '{{ item }}'
|
|
|
|
# mode: '0755'
|
|
|
|
# owner: '{{ restic_dir_owner }}'
|
|
|
|
# group: '{{ restic_dir_group }}'
|
|
|
|
# with_items: '{{ restic_create_paths }}'
|