mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-09-03 17:53:20 +02:00
Use absolute path for borgmatic
This commit is contained in:
parent
fa6acbeaa8
commit
5d0d42d2d2
@ -18,4 +18,8 @@
|
|||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ borg_distro_packages }}"
|
loop: "{{ borg_distro_packages }}"
|
||||||
|
|
||||||
|
- name: Set absolute path to /usr/bin
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
borg_abs_path: "/usr/bin"
|
||||||
...
|
...
|
||||||
|
@ -63,4 +63,9 @@
|
|||||||
borg "$@"
|
borg "$@"
|
||||||
dest: /usr/local/bin/borg
|
dest: /usr/local/bin/borg
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Set absolute path to /usr/bin
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
borg_abs_path: "/usr/local/bin"
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -12,7 +12,7 @@ ConditionACPower=true
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
User={{ borg_user }}
|
User={{ borg_user }}
|
||||||
ExecStart=borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} {{ borgmatic_timer_flags }}
|
ExecStart={{ borg_abs_path }}/borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} {{ borgmatic_timer_flags }}
|
||||||
|
|
||||||
# Source: https://projects.torsion.org/borgmatic-collective/borgmatic/raw/branch/master/sample/systemd/borgmatic.service
|
# Source: https://projects.torsion.org/borgmatic-collective/borgmatic/raw/branch/master/sample/systemd/borgmatic.service
|
||||||
# Security settings for systemd running as root, optional but recommended to improve security. You
|
# Security settings for systemd running as root, optional but recommended to improve security. You
|
||||||
|
Loading…
Reference in New Issue
Block a user