Provision game2.desu.ltd for SCPSL and other things

This commit is contained in:
Salt 2021-03-16 21:25:01 -05:00
parent d262f71e15
commit d8446b1bb2
2 changed files with 38 additions and 17 deletions

View File

@ -54,3 +54,4 @@ all:
game:
hosts:
game1.desu.ltd:
game2.desu.ltd:

View File

@ -53,23 +53,6 @@
vars:
container_default_behavior: no_defaults
tasks:
# https://github.com/mkrupczak3/SCP-SECRET-LAB-DOCKER
# Kinda forked it and changed a few settings tho
- name: docker deploy scpsl
docker_container:
state: absent
name: scpsl
image: rehashedsalt/scpsl:latest
restart_policy: unless-stopped
pull: yes
ports:
- "7777-7784:7777-7784/udp"
- "7777-7784:7777-7784"
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/steam/steamcmd
- /home/steam/scp_server
tags: [ docker, scpsl ]
- name: docker deploy terraria
docker_container:
name: terraria
@ -112,3 +95,40 @@
roles:
- role: minecraft
tags: [ game, minecraft, forge, dammit ]
- hosts: game2.desu.ltd
vars:
container_default_behavior: no_defaults
tasks:
- name: install docker libs
apt: name=python3-docker
tags: [ docker ]
# https://github.com/mkrupczak3/SCP-SECRET-LAB-DOCKER
# Kinda forked it and changed a few settings tho
- name: docker deploy scpsl
docker_container:
state: absent
name: scpsl
image: rehashedsalt/scpsl:latest
restart_policy: unless-stopped
pull: yes
ports:
- "7777-7784:7777-7784/udp"
- "7777-7784:7777-7784"
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/steam/steamcmd
- /home/steam/scp_server
tags: [ docker, scpsl ]
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /data
tags: [ backup ]
- role: motd
vars:
motd_watch_services_extra:
- docker
tags: [ motd ]
- role: docker
tags: [ docker, skip-pull ]