Skip to content

Commit

Permalink
Add check
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzyMistborn committed Oct 8, 2021
1 parent 9c2ce0c commit 99daaf7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ For additional documentation, please see the [official docs](https://autorestic.
## To Do

- Add cronjob variables (?) for basic tasks (backup, forget, etc).
- Don't think I will implement. Too personalized and too much variety in how to do. Will keep trying to think up a way.
- ~~Find a way to pin restic even if updating autorestic.~~

### If you appreciate my work, please consider buying me a beer (or cofee, or whatever)
Expand Down
7 changes: 4 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

### Restic
### Restic Install
restic_download_latest_ver: true # Change to 'false' to pin to a specific version
restic_pinned_ver: 0.12.1 # Overriden by 'autorestic_download_latest_ver' variable
restic_distro: linux_amd64
Expand All @@ -11,7 +11,7 @@ restic_download_directory: "/tmp/restic"
restic_install_directory: /usr/local/bin
restic_install_path: "{{ restic_install_directory }}/restic"

### Autorestic
### Autorestic Install
autorestic_download_latest_ver: true # Change to 'false' to pin to a specific version
autorestic_pinned_ver: 1.2.0 # Overriden by 'autorestic_download_latest_ver' variable
autorestic_distro: linux_amd64
Expand All @@ -28,4 +28,5 @@ autorestic_config_yaml: CHANGEME # autorestic configuration in yaml
autorestic_config_path: "{{ autorestic_user_directory }}/.autorestic.yml"
autorestic_config_mode: 0600
autorestic_config_owner: "{{ autorestic_config_user }}"
autorestic_config_group: "{{ autorestic_config_user }}"
autorestic_config_group: "{{ autorestic_config_user }}"
autorestic_run_check: true
4 changes: 4 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
mode: "{{ autorestic_config_mode }}"
when: autorestic_config_yaml != "CHANGEME"
become: true

- name: update autorestic binary
command: "{{ autorestic_install_path }} check -c {{ autorestic_install_path }}"
when: autorestic_run_check == true

0 comments on commit 99daaf7

Please sign in to comment.