2024-12-21 03:38:50 +00:00
|
|
|
---
|
|
|
|
- name: "Backup - Minecraft - Stop"
|
|
|
|
containers.podman.podman_container:
|
|
|
|
name: minecraft
|
|
|
|
state: stopped
|
|
|
|
|
|
|
|
- name: "Backup - Minecraft - Save"
|
|
|
|
community.general.archive:
|
|
|
|
path:
|
2024-12-23 15:58:14 +00:00
|
|
|
- "~/data/minecraft"
|
|
|
|
exclusion_patterns:
|
|
|
|
- "plugins/dynmap/web/tiles/*"
|
|
|
|
dest: "~/data/backups/minecraft-{{ ansible_facts.date_time.date + '-' + ansible_facts.date_time.hour + '-' + ansible_facts.date_time.minute + '-' + ansible_facts.date_time.second }}.zip"
|
2024-12-21 03:38:50 +00:00
|
|
|
format: zip
|
|
|
|
|
|
|
|
- name: "Backup - Minecraft - Start"
|
|
|
|
containers.podman.podman_container:
|
|
|
|
name: minecraft
|
|
|
|
state: started
|