ansible/playbooks/tasks/game/terraria-fargo.yml

21 lines
772 B
YAML
Raw Normal View History

2021-10-13 12:24:27 -05:00
# vim:ft=ansible:
- name: docker deploy terraria fargo
docker_container:
name: terraria-fargo
state: started
image: rehashedsalt/tmodloader-docker:v0.11.8.5
restart_policy: unless-stopped
pull: yes
ports:
- 7777:7777
volumes:
- /etc/localtime:/etc/localtime:ro
- /data/terraria-fargo/data:/terraria
tags: [ docker, terraria, fargo ]
2021-10-14 22:57:24 -05:00
- name: assure terraria backup dir
file: path=/data/terraria-fargo/backups state=directory owner=root group=root mode=0755
tags: [ docker, terraria, fargo ]
- name: assure terraria backup cronjob
cron: user=root name=terraria-fargo minute=*/24 job="tar czvf /data/terraria-fargo/backups/data-$(date +%Y-%m-%d-%H%M).tgz /data/terraria-fargo/data/"
tags: [ docker, terraria, fargo ]