Deploy a new box with Fargo

This commit is contained in:
Salt 2021-10-13 12:24:27 -05:00
parent e5441bcc2e
commit ed1c59662c
4 changed files with 28 additions and 23 deletions

10
playbooks/device_roles_game.yml Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: device_roles_game
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /data
tags: [ backup ]

View File

@ -2,30 +2,10 @@
# vim:ft=ansible:
# Game servers
---
- hosts: tags_game
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /data
backup_s3backup_exclude_list_extra:
- /data/minecraft/valhelsia3/backups
tags: [ backup ]
- hosts: game1.desu.ltd
- hosts: tmod1.desu.ltd
tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ task }}
include_tasks: tasks/game/{{ item }}
with_items:
- gmod.yml
loop_control:
loop_var: task
tags: [ always ]
- hosts: game2.desu.ltd
tasks:
- name: include tasks for gameservers
include_tasks: tasks/game/{{ task }}
with_items:
- css.yml
loop_control:
loop_var: task
- terraria-fargo.yml
tags: [ always ]

View File

@ -0,0 +1,14 @@
# 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 ]

View File

@ -12,6 +12,7 @@
- import_playbook: playbooks/tags_nagios.yml
# Role (in the Netbox sense) configuration
- import_playbook: playbooks/device_roles_bastion.yml
- import_playbook: playbooks/device_roles_game.yml
- import_playbook: playbooks/device_roles_workstation.yml
# Home configuration
- import_playbook: playbooks/home_media.yml