Commit graph

440 commits

Author SHA1 Message Date
L3D
245fd7ad04
Merge pull request #180 from nuz014/main
Check flag for backups
2026-03-21 14:03:16 +01:00
Sondre Batalden
a0414e3f07
Merge pull request #4 from nuz014/latest-version
Latest version
2026-03-20 11:42:02 +01:00
Sondre Batalden
ea671bab41
Merge pull request #3 from nuz014/extra-vars-in-backup
Extra vars in backup
2026-03-20 11:40:13 +01:00
Sondre Batalden
e354dbf5a4
Merge pull request #2 from nuz014/restic-check
Restic check
2026-03-06 15:13:22 +01:00
Sondre Batalden
eb539e14ed
Merge pull request #1 from roles-ansible/main
update
2026-03-06 15:11:53 +01:00
Sondre Batalden
7b2f70c362 Add support for running restic check during playbook execution
- Introduced `restic_run_check` variable to control execution of `restic check`.
- Updated README.md to document the new variable and its usage.
- Created a new task file `check.yml` to handle the execution of `restic check`.
- Modified main task file to include the new check task based on the `restic_run_check` condition.
2026-03-06 14:56:45 +01:00
Sondre Batalden
9947e791e8
Merge branch 'main' into extra-vars-in-backup
Signed-off-by: Sondre Batalden <151748642+nuz014@users.noreply.github.com>
2026-03-06 14:44:00 +01:00
Sondre Batalden
cf440b3799 Add support for extra arguments in backup 2026-03-06 14:41:52 +01:00
Sondre Batalden
f24a7d7346 Update restic_version to 0.18.1 and allow fetching the latest release from GitHub 2026-03-06 14:24:18 +01:00
Sondre Batalden
757d66ee0a Add logic to fetch and set the latest restic version from GitHub API 2026-03-06 14:23:01 +01:00
L3D
0acec70720
Merge pull request #173 from VeryStrongFingers/main
#88 Improve restic bash script to assert whether the pid process is stale
2025-12-22 22:06:52 +01:00
L3D
acf61cc080
Merge pull request #174 from johanvdw/access_cache
Use same folder for access/backup cache
2025-12-22 22:05:17 +01:00
Johan Van de Wauw
7aba206102
Use RESTIC_CACHE_DIR instead of XDG_CACHE_HOME 2025-12-22 11:53:41 +01:00
Johan Van de Wauw
b5229f6ba0
Use same cache dir in access as backup
Currently we can overwrite the cache dir when doing backups.
But different cache dirs are created when sourcing access_backup.
2025-12-22 11:50:21 +01:00
Mitchell
8c0bf78d48
Update restic_script_Linux.j2 to check pid file for legitimate process running
Signed-off-by: Mitchell <me@mnm.id.au>
2025-12-18 14:48:17 +11:00
L3D
2a8616bbc6
Merge pull request #172 from roles-ansible/DO1JLR-patch-1 v0.9.3
Update main.yml
2025-12-11 11:25:26 +01:00
L3D
85ae793db7
Update main.yml
Signed-off-by: L3D <l3d@c3woc.de>
2025-12-11 11:24:07 +01:00
L3D
f493af7460
Merge pull request #168 from varac/fix-download-path
fix: use restic_download_path if set
2025-12-11 11:23:26 +01:00
L3D
9d5aaea8f8
Merge pull request #170 from railakhmadullin/pid_permission_issue
Pid permission issue
2025-12-11 11:20:16 +01:00
L3D
c72006d4fd
Merge pull request #171 from maciekmm/fix-ansible-facts-reference
reference ansible facts through ansible_facts instead of ansible_ prefix
2025-12-11 11:18:36 +01:00
Maciej Mionskowski
d8bfba2104
reference ansible facts through ansible_facts instead of ansible_ prefix
The feature is deprecated, Ansible 2.24 will remove access to facts through ansible_ prefix entirely.

example of such warning

```
[DEPRECATION WARNING]: INJECT_FACTS_AS_VARS default to `True` is deprecated, top-level facts will not be auto injected after the change. This feature will be removed from ansible-core version 2.24.
Origin: $HOME/.ansible/roles/roles-ansible.restic/handlers/main.yml:16:7

14     - item.name is defined
15     - item.scheduled | default(false)
16     - ansible_service_mgr == 'systemd'
         ^ column 7
```
2025-12-10 22:30:25 +01:00
Rail
905a79839c Fix pid permission issue 2025-11-28 18:39:29 +04:00
Rail
a147bc883b Fix pid permission issue 2025-11-28 17:48:06 +04:00
Rail
080f860dc1 Update Readme 2025-11-28 16:59:17 +04:00
Rail
f978b33400 Fix pid permission issue 2025-11-28 16:33:34 +04:00
Varac
880b4d1740
fix: use restic_download_path if set 2025-11-23 22:21:47 +01:00
dependabot[bot]
9807f99ddd
Bump actions/checkout from 5 to 6 (#166)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-21 23:23:28 +01:00
Felix Andersen
c902a1dbaf
ensure we only call monitoring call if both backup and forget succeeds (#167) 2025-11-21 23:23:11 +01:00
Robin Scherrer
c37fbee9d7
Add toggle for restic user creation (#163)
* Add flag to control restic user creation

* Document restic user variables
2025-10-30 11:39:50 +00:00
L3D
e02c3da0d6
Merge pull request #162 from pat-s/patch-2 v0.9.2
fix: ensure cache directory exists and is writable
2025-10-29 18:47:24 +01:00
L3D
6409de15f9
Merge pull request #161 from pat-s/patch-1
fix: conditional logic in `restic_script_Linux.j2`
2025-10-29 18:46:40 +01:00
Patrick Schratz
b6b879cb8b
Ensure cache directory exists and is writable
Signed-off-by: Patrick Schratz <patrick.schratz@gmail.com>
2025-10-29 14:59:27 +01:00
Patrick Schratz
dfa5d71d10
Fix conditional logic in restic_script_Linux.j2
Signed-off-by: Patrick Schratz <patrick.schratz@gmail.com>
2025-10-29 14:58:23 +01:00
L3D
c8033a44ae
Merge pull request #158 from johanvdw/optional_restic_forget
Make restic forget optional on repo level
2025-10-26 18:37:39 +01:00
L3D
53ad63f5d1
Merge branch 'main' of https://github.com/roles-ansible/ansible_role_restic into optional_restic_forget 2025-10-26 18:36:16 +01:00
L3D
351f7f8adb
Merge pull request #153 from Nikerabbit/patch-1
Fix stdin backups
2025-10-26 18:36:02 +01:00
L3D
f120f32fb2
Merge branch 'main' of https://github.com/roles-ansible/ansible_role_restic into patch-1 2025-10-26 18:34:26 +01:00
L3D
bcea03c88d
Merge pull request #160 from roles-ansible/DO1JLR-patch-1
Update ansible-linting-check.yml
2025-10-26 18:23:03 +01:00
L3D
31d684a0c0
Update ansible-linting-check.yml
Signed-off-by: L3D <l3d@c3woc.de>
2025-10-26 18:21:42 +01:00
Johan Van de Wauw
72ec7e76ce
Document skip_forget option 2025-10-24 13:57:06 +02:00
Niklas Laxström
3c401a9f65
Merge branch 'roles-ansible:main' into patch-1 2025-10-07 14:55:57 +03:00
Shaun Bügler
c9f8b8b03b
Update restic_script_Linux.j2
Fix missing close loop in restic script template

Signed-off-by: Shaun Bügler <shaun@bugler.co.za>
2025-10-07 12:39:49 +02:00
L3D
b335ee1249
Merge pull request #151 from roles-ansible/DO1JLR-patch-1 v0.9.1
Update main.yml
2025-10-06 14:22:17 +02:00
L3D
7965f5dd58
Update main.yml
Signed-off-by: L3D <l3d@c3woc.de>
2025-10-06 14:20:52 +02:00
L3D
2ad2bec15c
Merge pull request #150 from gi8lino/main
fix: correct restic__cache_dir variable in permissions task
2025-10-06 14:13:41 +02:00
gi8
80aeda0256
fix restic__cache_dir permissions 2025-10-06 13:51:46 +02:00
Niklas Laxström
aae0e4cec1
Fix stdin backups
Parsing would fail due to unguarded access to repo.src, which is not defined for stdin backups.

Signed-off-by: Niklas Laxström <niklas.laxstrom@gmail.com>
2025-10-04 12:24:56 +03:00
L3D
44e937ac2f
Merge pull request #148 from roles-ansible/vsn
Inrease basic version
2025-09-30 19:49:54 +02:00
L3D
c6c4e8873b
Inrease basic version 2025-09-30 19:48:25 +02:00
L3D
0d2287fe60
Merge pull request #147 from roles-ansible/j2l v0.9.0
Remove j2lint check
2025-09-30 19:43:24 +02:00