Compare commits
2 commits
ff8bf15377
...
956b21d5f6
Author | SHA1 | Date | |
---|---|---|---|
956b21d5f6 | |||
601a3cd841 |
3 changed files with 14 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
borg_public_key: "AAAAC3NzaC1lZDI1NTE5AAAAIBTag7YToG5W+H2kEUz40kOH+7cs0Lp3owFFKkmHBiWM"
|
borg_public_key: "AAAAC3NzaC1lZDI1NTE5AAAAIBTag7YToG5W+H2kEUz40kOH+7cs0Lp3owFFKkmHBiWM"
|
||||||
dataserver_public_key: "AAAAC3NzaC1lZDI1NTE5AAAAIJsLVptkoOwmxs6DnenN8u7Q1Tm/Psh0QdI6vjrTgb6D"
|
dataserver_public_key: "AAAAC3NzaC1lZDI1NTE5AAAAIJsLVptkoOwmxs6DnenN8u7Q1Tm/Psh0QdI6vjrTgb6D"
|
||||||
backup_location: "/root/homeserver_backup"
|
kingston1tb_mount_point: "/mnt/kingston1TB"
|
||||||
|
backup_location: "{{ kingston1tb_mount_point }}/homeserver_backup"
|
||||||
|
|
||||||
admin_public_keys:
|
admin_public_keys:
|
||||||
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop"
|
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop"
|
||||||
|
|
1
inventory/group_vars/dataserver.yml
Normal file
1
inventory/group_vars/dataserver.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
kingston1tb_uuid: "622a8d81-aa2f-460b-a563-c3cdb6285609"
|
|
@ -20,6 +20,17 @@
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: 86400 # One day
|
cache_valid_time: 86400 # One day
|
||||||
|
- name: Create extra disk moint point
|
||||||
|
file:
|
||||||
|
path: "{{ kingston1tb_mount_point }}"
|
||||||
|
state: directory
|
||||||
|
- name: Mount extra disk
|
||||||
|
ansible.posix.mount:
|
||||||
|
path: "{{kingston1tb_mount_point }}"
|
||||||
|
src: "{{ kingston1tb_uuid }}"
|
||||||
|
fstype: ext4
|
||||||
|
passno: 1
|
||||||
|
state: present
|
||||||
- name: Install borg
|
- name: Install borg
|
||||||
apt:
|
apt:
|
||||||
name: borgbackup
|
name: borgbackup
|
||||||
|
|
Reference in a new issue