From 45a6b7f0c9bb2912acbb236c6adccf99ad0aaed7 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 3 May 2024 19:33:53 -0400 Subject: [PATCH] add hosts to borg role --- TODO.md | 2 +- borg/tasks/main.yml | 6 ++++-- group_vars/borg.yml | 2 ++ inventory | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 127fcfa..29ea6bd 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,6 @@ - [ ] BACKUPS BACKUPS BACKUPS -- [ ] nameservers for users +- [x] nameservers for users - [ ] read email for service accounts dmarc.report, postmaster email users, give access to infra users - [ ] allow infra users to ssh into any machine in infra, regular users into their tilde account on himmel - [x] allow ufw and setup wireguard on himmel diff --git a/borg/tasks/main.yml b/borg/tasks/main.yml index fd3be99..fbf1f49 100644 --- a/borg/tasks/main.yml +++ b/borg/tasks/main.yml @@ -1,13 +1,15 @@ +--- + - name: copy key template: - src: ../templates/borg_ssh_key.j2 + src: borg_ssh_key.j2 dest: /root/borg_ssh_key owner: root group: root mode: 0600 - name: push borg - import_role: + import_role: name: borgbase.ansible_role_borgbackup vars: borg_encryption_passphrase: "{{ borg_password }}" diff --git a/group_vars/borg.yml b/group_vars/borg.yml index 8f4c8d9..d38dba7 100644 --- a/group_vars/borg.yml +++ b/group_vars/borg.yml @@ -1,3 +1,5 @@ +--- + borg_my_user: "root" borg_my_group: "root" borg_ssh_key: "/root/borg_ssh_key" diff --git a/inventory b/inventory index 7abf733..f14410d 100644 --- a/inventory +++ b/inventory @@ -35,3 +35,7 @@ himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh [hatecomputers-club] himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh + +[borg] +himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh +fern.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh