ansible-role-borg-backup/tasks
Manu 91e793975f Fix venv recreation after Python version change
After an OS upgrade, the Python version may change but the existing
virtualenv at /opt/borgmatic still references the old Python binary.
This causes ModuleNotFoundError when trying to run borgmatic.

This fix adds checks before venv creation to:
1. Get the system's current Python version
2. Check the Python version in the existing venv (if any)
3. Remove the venv if versions don't match, allowing it to be recreated

Fixes #113

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 14:45:48 +00:00
..
00_assert.yml Extract asserts into their own file 2025-03-30 12:38:01 +01:00
01_install.yml Add none installation method 2025-07-09 18:37:42 +01:00
02_user_management.yml Restructure role, add Systemd timer option. By @conloos (#112) 2023-03-28 18:01:12 +01:00
03_create_key.yml Allow skipping SSH key and config generation 2026-01-05 13:42:10 +00:00
05_configure.yml Add support for custom configuration for borgmatic (#195) 2026-01-06 14:43:47 +00:00
07_install_timer.yml Restructure role, add Systemd timer option. By @conloos (#112) 2023-03-28 18:01:12 +01:00
main.yml Restructure role, add Systemd timer option. By @conloos (#112) 2023-03-28 18:01:12 +01:00
noauto_create_backup_user_and_group.yml Restructure role, add Systemd timer option. By @conloos (#112) 2023-03-28 18:01:12 +01:00
noauto_create_timer_cron.yml Fix linting messages 2025-04-28 19:59:35 +01:00
noauto_create_timer_systemd.yml Fix linting messages 2025-04-28 19:59:35 +01:00
noauto_install_package.yml Fix linting messages 2025-04-28 19:59:35 +01:00
noauto_install_pip.yml Fix venv recreation after Python version change 2026-01-06 14:45:48 +00:00