mirror of
https://github.com/MatteZ02/infra.git
synced 2024-12-22 16:33:18 +00:00
20 lines
497 B
YAML
20 lines
497 B
YAML
|
---
|
||
|
- name: "Backup - Minecraft - Stop"
|
||
|
containers.podman.podman_container:
|
||
|
name: minecraft
|
||
|
state: stopped
|
||
|
|
||
|
- name: "Backup - Minecraft - Save"
|
||
|
community.general.archive:
|
||
|
path:
|
||
|
- "~/data/minecraft"
|
||
|
exclude_path:
|
||
|
- "~/data/minecraft/plugins/dynmap/web/tiles"
|
||
|
dest: "~/data/backups/minecraft-{{ ansible_facts.date_time.date }}.zip"
|
||
|
format: zip
|
||
|
|
||
|
- name: "Backup - Minecraft - Start"
|
||
|
containers.podman.podman_container:
|
||
|
name: minecraft
|
||
|
state: started
|