1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_etebase.git synced 2024-08-16 10:19:52 +02:00

Merge pull request #15 from roles-ansible/backup

Put venv and repo to variable (backup task)
This commit is contained in:
L3D 2022-11-17 01:52:10 +01:00 committed by GitHub
commit 2d125f63b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -92,8 +92,8 @@
group: "{{ etebase__group }}" group: "{{ etebase__group }}"
path: path:
- "{{ etebase__current_backup_destination }}" - "{{ etebase__current_backup_destination }}"
- "{{ etebase__user_home }}/etebase_{{ remote_vars.last_etebase_version_target }}" - "{{ remote_vars.last_etebase_repo_dir }}"
- "{{ etebase__venv_path }}/{{ remote_vars.last_etebase_version_target }}" - "{{ remote_vars.last_etebase_venv_dir }}"
dest: "{{ etebase__current_backup_destination }}.tar.bz2" dest: "{{ etebase__current_backup_destination }}.tar.bz2"
format: bz2 format: bz2
remove: true remove: true

View file

@ -3,3 +3,5 @@
# {{ ansible_managed }} # {{ ansible_managed }}
# #
last_etebase_version_target: '{{ etebase_version_target }}' last_etebase_version_target: '{{ etebase_version_target }}'
last_etebase_repo_dir: '{{ etebase__user_home }}/etebase_{{ etebase_version_target }}'
last_etebase_venv_dir: '{{ etebase__venv }}'

View file

@ -4,5 +4,5 @@ etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags'
etebase__venv: "{{ etebase__venv_path }}/{{ etebase_version_target }}" etebase__venv: "{{ etebase__venv_path }}/{{ etebase_version_target }}"
# versionscheck # versionscheck
playbook_version_number: 12 # should be a integer playbook_version_number: 13 # should be a integer
playbook_version_path: 'role-do1jlr.etebase' playbook_version_path: 'role-do1jlr.etebase'