File tree 6 files changed +20
-12
lines changed
6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 1
-
2
1
image : ghcr.io/dbrennand/ansible-gitpod-workspace:latest
3
2
4
3
vscode :
Original file line number Diff line number Diff line change @@ -79,9 +79,10 @@ Whether or not to run `autorestic check` to make sure backends are configured pr
79
79
80
80
` ` ` yaml
81
81
autorestic_cron: false
82
+ autorestic_cron_verbose: false
82
83
` ` `
83
84
84
- Whether or not to create an autorestic crontab entry to trigger automated backups. Autorestic locations need to be configured with `cron`.
85
+ Whether or not to create an autorestic crontab entry to trigger automated backups. Use `autorestic_cron_verbose` to enable verbose logging. Autorestic locations need to be configured with [ `cron`](https://autorestic.vercel.app/location/cron) .
85
86
86
87
` ` ` yaml
87
88
autorestic_state: present
@@ -121,3 +122,5 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) for
121
122
[**dbrennand**](https://github.com/dbrennand) - *Author*
122
123
123
124
[**whysthatso**](https://github.com/whysthatso) - *Contributor*
125
+
126
+ [**PleaseStopAsking**](https://github.com/PleaseStopAsking) - *Contributor*
Original file line number Diff line number Diff line change @@ -25,4 +25,5 @@ autorestic_config: |-
25
25
autorestic_info : false
26
26
autorestic_check : false
27
27
autorestic_cron : false
28
+ autorestic_cron_verbose : false
28
29
autorestic_state : present
Original file line number Diff line number Diff line change 14
14
ansible.builtin.get_url :
15
15
url : " https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_arm64.bz2" # noqa yaml[line-length]
16
16
dest : /tmp/autorestic.bz2
17
- mode : 0644
17
+ mode : " 0644"
18
18
when : ansible_architecture == "aarch64"
19
19
20
20
- name : " Download autorestic binary for armv7l v{{ autorestic_version }}"
21
21
# E.g., Raspberry Pi 3 (32bit)
22
22
ansible.builtin.get_url :
23
23
url : " https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_arm.bz2"
24
24
dest : /tmp/autorestic.bz2
25
- mode : 0644
25
+ mode : " 0644"
26
26
when : ansible_architecture == "armv7l"
27
27
28
28
- name : " Download autorestic binary for x86_64 v{{ autorestic_version }}"
29
29
ansible.builtin.get_url :
30
30
url : " https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_amd64.bz2" # noqa yaml[line-length]
31
31
dest : /tmp/autorestic.bz2
32
- mode : 0644
32
+ mode : " 0644"
33
33
when : ansible_architecture == "x86_64"
34
34
35
35
- name : " Download autorestic binary for other architectures v{{ autorestic_version }}"
36
36
# Generic list containing available linux builds
37
37
ansible.builtin.get_url :
38
38
url : " https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_{{ item }}.bz2"
39
39
dest : /tmp/autorestic.bz2
40
- mode : 0644
40
+ mode : " 0644"
41
41
when : ansible_architecture == item
42
42
with_items :
43
43
- mips
Original file line number Diff line number Diff line change 49
49
ansible.builtin.copy :
50
50
content : " {{ autorestic_config }}"
51
51
dest : ~/.autorestic.yml
52
- mode : 0600
52
+ mode : " 0600"
53
53
54
54
- name : Run autorestic info
55
55
ansible.builtin.command :
77
77
ansible.builtin.cron :
78
78
name : Configure autorestic crontab job
79
79
minute : " */5"
80
- job : autorestic -c ~/.autorestic.yml --ci cron > /tmp/autorestic.log 2>&1
80
+ job : |
81
+ {% if autorestic_cron_verbose == true %}
82
+ autorestic -c ~/.autorestic.yml --ci cron -vvvvv > /tmp/autorestic.log 2>&1
83
+ {% else %}
84
+ autorestic -c ~/.autorestic.yml --ci cron > /tmp/autorestic.log 2>&1
85
+ {% endif %}
Original file line number Diff line number Diff line change 14
14
ansible.builtin.get_url :
15
15
url : " https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_arm64.bz2"
16
16
dest : /tmp/restic.bz2
17
- mode : 0644
17
+ mode : " 0644"
18
18
when : ansible_architecture == "aarch64"
19
19
20
20
- name : " Download restic binary for armv7l v{{ autorestic_restic_version }}"
21
21
# E.g., Raspberry Pi 3 (32bit)
22
22
ansible.builtin.get_url :
23
23
url : " https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_arm.bz2"
24
24
dest : /tmp/restic.bz2
25
- mode : 0644
25
+ mode : " 0644"
26
26
when : ansible_architecture == "armv7l"
27
27
28
28
- name : " Download restic binary for x86_64 v{{ autorestic_restic_version }}"
29
29
ansible.builtin.get_url :
30
30
url : " https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_amd64.bz2"
31
31
dest : /tmp/restic.bz2
32
- mode : 0644
32
+ mode : " 0644"
33
33
when : ansible_architecture == "x86_64"
34
34
35
35
- name : " Download restic binary for other architectures v{{ autorestic_restic_version }}"
36
36
# Generic list containing available linux builds
37
37
ansible.builtin.get_url :
38
38
url : " https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_{{ item }}.bz2"
39
39
dest : /tmp/restic.bz2
40
- mode : 0644
40
+ mode : " 0644"
41
41
when : ansible_architecture == item
42
42
with_items :
43
43
- mips
You can’t perform that action at this time.
0 commit comments