Compare commits

...

3 Commits

Author SHA1 Message Date
7e595e7e89 Pull images 2021-03-05 01:27:26 -06:00
1d317bcb28 Add docker to the MOTD of game1 2021-03-05 01:16:01 -06:00
1107764d16 Deploy a Docker container for SCPSL 2021-03-05 00:56:03 -06:00

View File

@ -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,9 +22,12 @@
- /opt/minecraft/valhelsia/backups
- /opt/minecraft/vanilla/backups
tags: [ backup ]
- role: docker
tags: [ docker, skip-pull ]
- role: motd
vars:
motd_watch_services_extra:
- docker
- minecraft@dammit
- minecraft@valhelsia
- minecraft@vanilla
@ -40,6 +47,27 @@
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
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 ]
# Vanilla Ice
# Note that this one doesn't get a nightly restart job because Paper is awesome
- hosts: game1.desu.ltd