From 6d860f0048f923d57e1dabc24f14f4791fd7a2d6 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 17 Nov 2022 01:51:05 +0100 Subject: [PATCH] Put venv and repo to variable (backup task) --- tasks/backup.yml | 4 ++-- templates/etebase_version.yml | 2 ++ vars/main.yml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/backup.yml b/tasks/backup.yml index 969e8ca..b36ce9e 100644 --- a/tasks/backup.yml +++ b/tasks/backup.yml @@ -92,8 +92,8 @@ group: "{{ etebase__group }}" path: - "{{ etebase__current_backup_destination }}" - - "{{ etebase__user_home }}/etebase_{{ remote_vars.last_etebase_version_target }}" - - "{{ etebase__venv_path }}/{{ remote_vars.last_etebase_version_target }}" + - "{{ remote_vars.last_etebase_repo_dir }}" + - "{{ remote_vars.last_etebase_venv_dir }}" dest: "{{ etebase__current_backup_destination }}.tar.bz2" format: bz2 remove: true diff --git a/templates/etebase_version.yml b/templates/etebase_version.yml index 8986966..e676e9c 100644 --- a/templates/etebase_version.yml +++ b/templates/etebase_version.yml @@ -3,3 +3,5 @@ # {{ ansible_managed }} # last_etebase_version_target: '{{ etebase_version_target }}' +last_etebase_repo_dir: '{{ etebase__user_home }}/etebase_{{ etebase_version_target }}' +last_etebase_venv_dir: '{{ etebase__venv }}' diff --git a/vars/main.yml b/vars/main.yml index 4e776c7..40c1cac 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -4,5 +4,5 @@ etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags' etebase__venv: "{{ etebase__venv_path }}/{{ etebase_version_target }}" # versionscheck -playbook_version_number: 12 # should be a integer +playbook_version_number: 13 # should be a integer playbook_version_path: 'role-do1jlr.etebase'