noticket - update zomboid b42revamp modpack to collection 3672556207
Replaces old 168-mod collection (3636931465) with new 385-mod collection. Cleaned BBCode artifacts from mod IDs, updated map folders for 32 maps. LogCabin retained for player connect/disconnect logging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
48
ansible/roles/podman/tasks/containers/cloud-backup.yml
Normal file
48
ansible/roles/podman/tasks/containers/cloud-backup.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
- name: deploy {{ backup_name }} backup SSH key
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
content: "{{ ssh_key_content }}"
|
||||
dest: "/root/.ssh/truenas_{{ backup_name }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
|
||||
- name: template {{ backup_name }} backup script
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: nextcloud/cloud-backup.sh.j2
|
||||
dest: "{{ script_path }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: template {{ backup_name }} backup systemd service
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: nextcloud/cloud-backup.service.j2
|
||||
dest: "/etc/systemd/system/{{ backup_name }}-backup.service"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
vars:
|
||||
instance_name: "{{ backup_name }}"
|
||||
|
||||
- name: template {{ backup_name }} backup systemd timer
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: nextcloud/cloud-backup.timer.j2
|
||||
dest: "/etc/systemd/system/{{ backup_name }}-backup.timer"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
vars:
|
||||
instance_name: "{{ backup_name }}"
|
||||
|
||||
- name: enable and start {{ backup_name }} backup timer
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ backup_name }}-backup.timer"
|
||||
enabled: true
|
||||
state: started
|
||||
daemon_reload: true
|
||||
@@ -83,3 +83,13 @@
|
||||
include_tasks: podman/systemd-generate.yml
|
||||
vars:
|
||||
container_name: cloud
|
||||
|
||||
- include_tasks: containers/cloud-backup.yml
|
||||
vars:
|
||||
backup_name: cloud
|
||||
data_path: "{{ cloud_path }}/data"
|
||||
ssh_key_path: /root/.ssh/truenas_cloud
|
||||
ssh_key_content: "{{ cloud_backup_ssh_key }}"
|
||||
ssh_user: cloud
|
||||
remote_path: /mnt/glacier/nextcloud
|
||||
script_path: "{{ cloud_path }}/backup.sh"
|
||||
|
||||
@@ -130,3 +130,13 @@
|
||||
register: trusted_domain_result
|
||||
changed_when: "'System config value trusted_domains' in trusted_domain_result.stdout"
|
||||
failed_when: false
|
||||
|
||||
- include_tasks: containers/cloud-backup.yml
|
||||
vars:
|
||||
backup_name: skudak-cloud
|
||||
data_path: "{{ cloud_skudak_path }}/data"
|
||||
ssh_key_path: /root/.ssh/truenas_skudak
|
||||
ssh_key_content: "{{ cloud_skudak_backup_ssh_key }}"
|
||||
ssh_user: skucloud
|
||||
remote_path: /mnt/glacier/skudakcloud
|
||||
script_path: "{{ cloud_skudak_path }}/backup.sh"
|
||||
|
||||
@@ -62,13 +62,13 @@
|
||||
- import_tasks: containers/home/cloud.yml
|
||||
vars:
|
||||
db_image: docker.io/library/mariadb:10.6
|
||||
image: docker.io/library/nextcloud:32.0.1-apache
|
||||
image: docker.io/library/nextcloud:33.0.0-apache
|
||||
tags: cloud
|
||||
|
||||
- import_tasks: containers/skudak/cloud.yml
|
||||
vars:
|
||||
db_image: docker.io/library/mariadb:10.6
|
||||
image: docker.io/library/nextcloud:32.0.1-apache
|
||||
image: docker.io/library/nextcloud:33.0.0-apache
|
||||
tags: skudak, skudak-cloud
|
||||
|
||||
- import_tasks: containers/debyltech/fulfillr.yml
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Nextcloud {{ instance_name }} backup to TrueNAS
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart={{ script_path }}
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
rsync -az -e "ssh -i {{ ssh_key_path }} -o StrictHostKeyChecking=accept-new" \
|
||||
{{ data_path }}/ {{ ssh_user }}@truenas.localdomain:{{ remote_path }}/
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Daily Nextcloud {{ instance_name }} backup
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 04:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Binary file not shown.
Reference in New Issue
Block a user