aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/borg-client
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2022-11-17 09:48:45 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2022-11-17 09:49:06 +0100
commit6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0 (patch)
tree2846954ec3725f33cdbc1c33722f8ef7c4d8ad13 /ansible/roles/borg-client
parent70f235f0ec9937fa41b80fe2d8c5355649c24ea9 (diff)
downloadinfra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.gz
infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.bz2
infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.tar.xz
infra-6fbf9f40f88f51450cc2d2dbbc46ca5c70ffbad0.zip
borg
Diffstat (limited to 'ansible/roles/borg-client')
-rw-r--r--ansible/roles/borg-client/tasks/main.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/ansible/roles/borg-client/tasks/main.yml b/ansible/roles/borg-client/tasks/main.yml
index d5767cd..6e34850 100644
--- a/ansible/roles/borg-client/tasks/main.yml
+++ b/ansible/roles/borg-client/tasks/main.yml
@@ -1,4 +1,4 @@
-- tags: packages
+- tags: packages,never
apt:
name:
- borgbackup
@@ -19,6 +19,15 @@
owner: root
group: root
+- command: ssh-keyscan zh2569.rsync.net
+ register: keyscan
+ when: borg_client__target is defined
+
+- copy:
+ dest: /etc/tergum/ssh_known_hosts
+ content: "{{ keyscan.stdout }}"
+ when: keyscan is defined
+
- name: "/etc/systemd/system/tergum@.service"
copy:
dest: "/etc/systemd/system/tergum@.service"