create mountpoint for 1tb disk
changed borg config to use the 1tb disk
This commit is contained in:
parent
ff8bf15377
commit
601a3cd841
3 changed files with 13 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,16 @@
|
||||||
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
|
||||||
|
state: present
|
||||||
- name: Install borg
|
- name: Install borg
|
||||||
apt:
|
apt:
|
||||||
name: borgbackup
|
name: borgbackup
|
||||||
|
|
Reference in a new issue