From 770598ffca045d6a6f12b02ed89b288b99dea439 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 7 Jan 2022 20:13:57 +0100 Subject: [PATCH] rename some tasks --- tasks/main.yml | 8 ++++---- tasks/preperation.yml | 1 + vars/main.yml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 09466bb..95a64a9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/tasks/preperation.yml b/tasks/preperation.yml index 22d58e2..508ca7f 100644 --- a/tasks/preperation.yml +++ b/tasks/preperation.yml @@ -1,5 +1,6 @@ --- - name: Ensure restic directories exist + become: true ansible.builtin.file: state: 'directory' path: '{{ item }}' diff --git a/vars/main.yml b/vars/main.yml index e1abffb..b9cc149 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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'