Skip to content

Commit

Permalink
fix manager hostname reference
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Jan 24, 2024
1 parent 4bc7e14 commit 70e2eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/server-setup/backups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 70e2eae

Please sign in to comment.