restic version from pillar

This commit is contained in:
Keiran Snowden
2023-11-27 19:51:17 -05:00
parent 1f89c93f30
commit 99efec7e95
3 changed files with 5 additions and 10 deletions

View File

@@ -26,9 +26,7 @@ restic-{{ name }}:
- shell: /bin/bash
- source: 'salt://restic/files/install.sh'
- template: jinja
- unless: "/bin/restic version | grep 'restic 0.16.2 '"
- env:
- RESTIC_VERSION: 0.16.2
- unless: "/bin/restic version | grep 'restic {{ salt.pillar.get("restic:version") }} '"
{% endif %}
/etc/logrotate.d/restic-backup: