diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-09-08 18:50:09 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-09-08 18:50:09 +0200 |
commit | 4d6a0f553ae4cbdeec73dffe4aabb3110c0e09c0 (patch) | |
tree | 2283c968c58e3ea61f3abf58c10e08662087a140 /ansible/roles/borg-client | |
parent | c1fe8d9551e337031e5a5d62224779b389872ea3 (diff) | |
download | infra-4d6a0f553ae4cbdeec73dffe4aabb3110c0e09c0.tar.gz infra-4d6a0f553ae4cbdeec73dffe4aabb3110c0e09c0.tar.bz2 infra-4d6a0f553ae4cbdeec73dffe4aabb3110c0e09c0.tar.xz infra-4d6a0f553ae4cbdeec73dffe4aabb3110c0e09c0.zip |
o Borg wip.
Diffstat (limited to 'ansible/roles/borg-client')
-rw-r--r-- | ansible/roles/borg-client/tasks/main.yml | 8 | ||||
-rw-r--r-- | ansible/roles/borg-client/templates/bin/trygvis-borg-run-backup | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/borg-client/tasks/main.yml b/ansible/roles/borg-client/tasks/main.yml new file mode 100644 index 0000000..79a9406 --- /dev/null +++ b/ansible/roles/borg-client/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: packages + tags: packages + apt: + name: "{{ item }}" + install_recommends: no + with_items: + - borgbackup diff --git a/ansible/roles/borg-client/templates/bin/trygvis-borg-run-backup b/ansible/roles/borg-client/templates/bin/trygvis-borg-run-backup new file mode 100644 index 0000000..7f3e218 --- /dev/null +++ b/ansible/roles/borg-client/templates/bin/trygvis-borg-run-backup @@ -0,0 +1,5 @@ +#!/bin/bash + +set -euo pipefail + +/usr/bin/borg |