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
|
- name: Copy systemd mount file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: files/systemd-mount.mount
|
src: files/{{item}}.mount
|
||||||
dest: /etc/systemd/system/mnt-syno-InfraBackups.mount
|
dest: /etc/systemd/system/{{item}}.mount
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
with_items:
|
||||||
|
- mnt-syno-InfraBackups
|
||||||
|
- mnt-syno-k8home
|
||||||
register: systemd_mount
|
register: systemd_mount
|
||||||
|
|
||||||
- name: Reload systemd
|
- name: Reload systemd
|
||||||
|
@ -25,9 +28,12 @@
|
||||||
|
|
||||||
- name: Start & Enable systemd mount
|
- name: Start & Enable systemd mount
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: mnt-syno-InfraBackups.mount
|
name: "{{item}}.mount"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
with_items:
|
||||||
|
- mnt-syno-InfraBackups
|
||||||
|
- mnt-syno-k8home
|
||||||
when: systemd_mount.changed
|
when: systemd_mount.changed
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ Wants=network-online.target
|
||||||
[Mount]
|
[Mount]
|
||||||
What=https://371969.connect.kdrive.infomaniak.com
|
What=https://371969.connect.kdrive.infomaniak.com
|
||||||
Where=/mnt/kdrive
|
Where=/mnt/kdrive
|
||||||
Options=noauto,user,
|
Options=noauto,user,ro,
|
||||||
Type=davfs
|
Type=davfs
|
||||||
TimeoutSec=60
|
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
|
### kDrive
|
||||||
backup /mnt/kdrive/ kdrive/
|
backup /mnt/kdrive/ kdrive/
|
||||||
|
|
||||||
|
|
||||||
|
### kubernetes PVCs
|
||||||
|
backup /mnt/syno/k8home/ k8home/
|
||||||
|
|
||||||
# LOCALHOST
|
# LOCALHOST
|
||||||
#backup /home/ localhost/
|
#backup /home/ localhost/
|
||||||
#backup /etc/ localhost/
|
#backup /etc/ localhost/
|
||||||
|
|
Loading…
Reference in a new issue