Skip to content

Commit

Permalink
add task to ensure ssh dir exists for backup user
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Dec 22, 2023
1 parent 332928e commit 409f869
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions infrastructure/server-setup/backups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 409f869

Please sign in to comment.