add hosts to borg role
This commit is contained in:
parent
c824245ac9
commit
45a6b7f0c9
2
TODO.md
2
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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
|
||||
borg_my_user: "root"
|
||||
borg_my_group: "root"
|
||||
borg_ssh_key: "/root/borg_ssh_key"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue