mirror of
https://github.com/MatteZ02/infra.git
synced 2025-01-15 11:33:08 +00:00
18 lines
542 B
YAML
18 lines
542 B
YAML
---
|
|
- name: "Backup - Minecraft - Stop"
|
|
containers.podman.podman_container:
|
|
name: minecraft
|
|
state: stopped
|
|
|
|
- name: "Backup - Minecraft - Save"
|
|
community.general.archive:
|
|
path:
|
|
- "~/data/minecraft"
|
|
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"
|
|
format: zip
|
|
|
|
- name: "Backup - Minecraft - Start"
|
|
containers.podman.podman_container:
|
|
name: minecraft
|
|
state: started
|