ansible/playbooks/prod_game.yml

32 lines
737 B
YAML
Raw Normal View History

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
# Game servers
---
- hosts: tags_game
2021-05-11 21:16:29 -05:00
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /data
backup_s3backup_exclude_list_extra:
- /data/minecraft/valhelsia3/backups
2021-05-11 21:16:29 -05:00
tags: [ backup ]
- hosts: game1.desu.ltd
tasks:
2021-08-07 12:08:29 -05:00
- name: include tasks for gameservers
include_tasks: tasks/game/{{ task }}
with_items:
- gmod.yml
loop_control:
loop_var: task
tags: [ always ]
- hosts: game2.desu.ltd
tasks:
2021-08-07 12:08:29 -05:00
- name: include tasks for gameservers
include_tasks: tasks/game/{{ task }}
with_items:
- css.yml
loop_control:
loop_var: task
tags: [ always ]