From 409f869ffda9dae1a032586a720166135bf54029 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Fri, 22 Dec 2023 16:17:55 +0200 Subject: [PATCH] add task to ensure ssh dir exists for backup user --- infrastructure/server-setup/backups.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infrastructure/server-setup/backups.yml b/infrastructure/server-setup/backups.yml index d247ce576..c03bcfec1 100644 --- a/infrastructure/server-setup/backups.yml +++ b/infrastructure/server-setup/backups.yml @@ -50,6 +50,15 @@ tags: - backups + - name: Ensure .ssh directory exists + file: + path: '/home/{{ external_backup_server_user }}/.ssh' + state: directory + owner: '{{ external_backup_server_user }}' + mode: '0700' + tags: + - backups + - name: Ensure backup application servers can login to backup server copy: src: /tmp/backup_ssh_key.pub