Deploy a new box with Fargo
This commit is contained in:
parent
e5441bcc2e
commit
ed1c59662c
10
playbooks/device_roles_game.yml
Executable file
10
playbooks/device_roles_game.yml
Executable 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 ]
|
@ -2,30 +2,10 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
# Game servers
|
# Game servers
|
||||||
---
|
---
|
||||||
- hosts: tags_game
|
- hosts: tmod1.desu.ltd
|
||||||
roles:
|
|
||||||
- role: backup
|
|
||||||
vars:
|
|
||||||
backup_s3backup_list_extra:
|
|
||||||
- /data
|
|
||||||
backup_s3backup_exclude_list_extra:
|
|
||||||
- /data/minecraft/valhelsia3/backups
|
|
||||||
tags: [ backup ]
|
|
||||||
- hosts: game1.desu.ltd
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: include tasks for gameservers
|
- name: include tasks for gameservers
|
||||||
include_tasks: tasks/game/{{ task }}
|
include_tasks: tasks/game/{{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- gmod.yml
|
- terraria-fargo.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
|
|
||||||
tags: [ always ]
|
tags: [ always ]
|
||||||
|
14
playbooks/tasks/game/terraria-fargo.yml
Normal file
14
playbooks/tasks/game/terraria-fargo.yml
Normal 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 ]
|
1
site.yml
1
site.yml
@ -12,6 +12,7 @@
|
|||||||
- import_playbook: playbooks/tags_nagios.yml
|
- import_playbook: playbooks/tags_nagios.yml
|
||||||
# Role (in the Netbox sense) configuration
|
# Role (in the Netbox sense) configuration
|
||||||
- import_playbook: playbooks/device_roles_bastion.yml
|
- import_playbook: playbooks/device_roles_bastion.yml
|
||||||
|
- import_playbook: playbooks/device_roles_game.yml
|
||||||
- import_playbook: playbooks/device_roles_workstation.yml
|
- import_playbook: playbooks/device_roles_workstation.yml
|
||||||
# Home configuration
|
# Home configuration
|
||||||
- import_playbook: playbooks/home_media.yml
|
- import_playbook: playbooks/home_media.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user