Mount RO, Add k8home
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
bf51c3d3df
commit
6e43a53bff
5 changed files with 40 additions and 4 deletions
|
@ -11,11 +11,14 @@
|
|||
|
||||
- name: Copy systemd mount file
|
||||
ansible.builtin.copy:
|
||||
src: files/systemd-mount.mount
|
||||
dest: /etc/systemd/system/mnt-syno-InfraBackups.mount
|
||||
src: files/{{item}}.mount
|
||||
dest: /etc/systemd/system/{{item}}.mount
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
with_items:
|
||||
- mnt-syno-InfraBackups
|
||||
- mnt-syno-k8home
|
||||
register: systemd_mount
|
||||
|
||||
- name: Reload systemd
|
||||
|
@ -25,9 +28,12 @@
|
|||
|
||||
- name: Start & Enable systemd mount
|
||||
ansible.builtin.systemd:
|
||||
name: mnt-syno-InfraBackups.mount
|
||||
name: "{{item}}.mount"
|
||||
state: started
|
||||
enabled: yes
|
||||
with_items:
|
||||
- mnt-syno-InfraBackups
|
||||
- mnt-syno-k8home
|
||||
when: systemd_mount.changed
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ Wants=network-online.target
|
|||
[Mount]
|
||||
What=https://371969.connect.kdrive.infomaniak.com
|
||||
Where=/mnt/kdrive
|
||||
Options=noauto,user,
|
||||
Options=noauto,user,ro,
|
||||
Type=davfs
|
||||
TimeoutSec=60
|
||||
|
||||
|
|
13
ansible/files/mnt-syno-InfraBackups.mount
Normal file
13
ansible/files/mnt-syno-InfraBackups.mount
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Mounts InfraBackup from syno
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Mount]
|
||||
What=192.168.10.200:/volume1/InfraBackups
|
||||
Where=/mnt/syno/InfraBackups
|
||||
Type=nfs
|
||||
Options=defaults
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
ansible/files/mnt-syno-k8home.mount
Normal file
13
ansible/files/mnt-syno-k8home.mount
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Mounts InfraBackup from syno
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Mount]
|
||||
What=192.168.10.200:/volume1/k8home
|
||||
Where=/mnt/syno/k8home
|
||||
Type=nfs
|
||||
Options=defaults,ro
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -233,6 +233,10 @@ backup root@{{host}}:{{ backup_dir }} {{host}}
|
|||
### kDrive
|
||||
backup /mnt/kdrive/ kdrive/
|
||||
|
||||
|
||||
### kubernetes PVCs
|
||||
backup /mnt/syno/k8home/ k8home/
|
||||
|
||||
# LOCALHOST
|
||||
#backup /home/ localhost/
|
||||
#backup /etc/ localhost/
|
||||
|
|
Loading…
Reference in a new issue