add hosts to borg role

This commit is contained in:
Elizabeth Hunt 2024-05-03 19:33:53 -04:00
parent c824245ac9
commit 45a6b7f0c9
4 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,6 @@
- [ ] BACKUPS BACKUPS BACKUPS - [ ] 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 - [ ] 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 - [ ] 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 - [x] allow ufw and setup wireguard on himmel

View File

@ -1,13 +1,15 @@
---
- name: copy key - name: copy key
template: template:
src: ../templates/borg_ssh_key.j2 src: borg_ssh_key.j2
dest: /root/borg_ssh_key dest: /root/borg_ssh_key
owner: root owner: root
group: root group: root
mode: 0600 mode: 0600
- name: push borg - name: push borg
import_role: import_role:
name: borgbase.ansible_role_borgbackup name: borgbase.ansible_role_borgbackup
vars: vars:
borg_encryption_passphrase: "{{ borg_password }}" borg_encryption_passphrase: "{{ borg_password }}"

View File

@ -1,3 +1,5 @@
---
borg_my_user: "root" borg_my_user: "root"
borg_my_group: "root" borg_my_group: "root"
borg_ssh_key: "/root/borg_ssh_key" borg_ssh_key: "/root/borg_ssh_key"

View File

@ -35,3 +35,7 @@ himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh
[hatecomputers-club] [hatecomputers-club]
himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh 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