aboutsummaryrefslogtreecommitdiff
path: root/tasks/client_init.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/client_init.yml')
-rw-r--r--tasks/client_init.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tasks/client_init.yml b/tasks/client_init.yml
new file mode 100644
index 0000000..251bee4
--- /dev/null
+++ b/tasks/client_init.yml
@@ -0,0 +1,12 @@
+---
+- name: generate borg ssh key on client
+ openssh_keypair:
+ owner: root
+ mode: 0400
+ path: /root/.ssh/borg
+ type: ed25519
+ register: borg_ssh_key
+
+- name: reload ansible_local
+ setup: filter=ansible_local
+ #when: borg_ssh_key.changed