Compare commits

..

2 Commits

Author SHA1 Message Date
6ca6f56cfd Luanti backup service 2025-06-26 12:57:25 -04:00
62b06fcfad v1.0.0 2024-11-11 15:57:54 -05:00
2 changed files with 13 additions and 27 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Create a tarball of luanti-luanti-minetest-config-pvc
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c "cd /data/alpha/luanti-luanti-minetest-config-pvc-82a282df-f147-4d83-ad83-376b1b06d99b/ && tar -czvf worlds_$(date| sed 's/ /_/g').tar.gz worlds"
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target

View File

@@ -4,35 +4,9 @@
apt:
update_cache: yes
- name: Install debconf-utils
when: is_new_host == true
apt:
name: debconf-utils
state: present
- name: Create preseed file
when: is_new_host == true
shell: echo "#_preseed_V1" > /root/preseed.txt
- name: Append installer's debconf database to the preseed file
when: is_new_host == true
shell: debconf-get-selections --installer >> /root/preseed.txt
- name: Append debconf database to the preseed file
when: is_new_host == true
shell: debconf-get-selections >> /root/preseed.txt
- name: Append text from files/motd to the beginning of remote motd file
when: is_new_host == true
blockinfile:
path: /etc/motd
marker: ""
block: |
{{ lookup('file', 'files/motd') }}
- name: Copy nftables configuration template
template:
src: "nftables.conf.j2"
src: nftables.conf.j2
dest: /etc/nftables.conf
- name: Enable nftables