From 70e2eaef83e2224db55fe953724632c1a8779b2d Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Wed, 24 Jan 2024 09:22:42 +0200 Subject: [PATCH] fix manager hostname reference --- infrastructure/server-setup/backups.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/server-setup/backups.yml b/infrastructure/server-setup/backups.yml index 17ae241b5..da9fff577 100644 --- a/infrastructure/server-setup/backups.yml +++ b/infrastructure/server-setup/backups.yml @@ -86,7 +86,7 @@ become_method: sudo vars: external_backup_server_user: 'backup_user' # Replace with actual username - + manager_hostname: "{{ groups['docker-manager-first'][0] }}" tasks: - name: Ensure backup user is present user: @@ -131,7 +131,7 @@ path: '{{ external_backup_server_user_home }}/.ssh/authorized_keys' block: | {{ lookup('file', '/tmp/docker-manager-first_id_rsa.pub') }} - marker: '# {mark} ANSIBLE MANAGED BLOCK docker-manager-first {{ inventory_hostname }}' + marker: '# {mark} ANSIBLE MANAGED BLOCK docker-manager-first {{ manager_hostname }}' create: yes mode: 0600 tags: