rename some tasks

This commit is contained in:
L3D 2022-01-07 20:13:57 +01:00
parent 25ee60fb5a
commit 770598ffca
No known key found for this signature in database
GPG key ID: CD08445BFF4313D1
3 changed files with 6 additions and 5 deletions

View file

@ -2,18 +2,18 @@
- name: add OS specific variables
ansible.builtin.include_vars: "{{ lookup('first_found', restic_os_variables) }}"
- name: perform versionscheck
- name: perform optional versionscheck
ansible.builtin.include_tasks: 'versioncheck.yml'
when: submodules_versioncheck|bool
when: submodules_versioncheck | bool
- name: make sure restic is available
ansible.builtin.include_tasks: 'preperation.yml'
- name: Install restic
- name: make sure restic is installed
ansible.builtin.include_tasks: 'install.yml'
when: not restic_executable.stat.exists or not restic_installed.stat.exists
- name: Configure restic
- name: initialize restic repo(s)
ansible.builtin.include_tasks: 'configure.yml'
- name: create backup script

View file

@ -1,5 +1,6 @@
---
- name: Ensure restic directories exist
become: true
ansible.builtin.file:
state: 'directory'
path: '{{ item }}'

View file

@ -10,5 +10,5 @@ restic_os_variables:
paths:
- 'vars'
playbook_version_number: 20 # should be int
playbook_version_number: 21 # should be int
playbook_version_path: 'do1jlr.restic.version'