From 1107764d1630f75b1442848a98a882c2a929e872 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 5 Mar 2021 00:56:03 -0600 Subject: [PATCH] Deploy a Docker container for SCPSL --- playbooks/game.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/playbooks/game.yml b/playbooks/game.yml index 5ae2d1f..7c2d6cc 100755 --- a/playbooks/game.yml +++ b/playbooks/game.yml @@ -5,6 +5,10 @@ - hosts: game1.desu.ltd vars_files: - vars/factorio-main.yml + tasks: + - name: install docker libs + apt: name=python3-docker + tags: [ docker ] roles: - role: backup vars: @@ -18,6 +22,8 @@ - /opt/minecraft/valhelsia/backups - /opt/minecraft/vanilla/backups tags: [ backup ] + - role: docker + tags: [ docker, skip-pull ] - role: motd vars: motd_watch_services_extra: @@ -40,6 +46,26 @@ lan: false admins: [ "rehashed_salt" ] tags: [ game, factorio ] + # Docker gameservers +- hosts: game1.desu.ltd + 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: + name: scpsl + image: rehashedsalt/scpsl:latest + restart_policy: unless-stopped + 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 ] # Vanilla Ice # Note that this one doesn't get a nightly restart job because Paper is awesome - hosts: game1.desu.ltd