Compare commits

...

3 Commits

Author SHA1 Message Date
80bec1b2f6 Always restart pulse. Always. 2021-02-08 10:41:07 -06:00
82d5db4a11 Reorganize playbook for game1.thefuck.how 2021-02-04 02:02:00 -06:00
f77c89e858 Add nightly restart job for minecraft@dammit 2021-02-04 02:00:40 -06:00
2 changed files with 19 additions and 3 deletions

View File

@ -5,7 +5,6 @@
- hosts: game1.thefuck.how
vars_files:
- vars/factorio-main.yml
- vars/minecraft-valhelsia.yml
roles:
- role: backup
vars:
@ -26,8 +25,6 @@
- minecraft@valhelsia
- minecraft@vanilla
tags: [ motd ]
- role: minecraft
tags: [ game, minecraft, forge, valhelsia ]
- role: factorio
vars:
server_version: 1.0.0
@ -43,13 +40,31 @@
lan: false
admins: [ "rehashed_salt" ]
tags: [ game, factorio ]
# Vanilla Ice
# Note that this one doesn't get a nightly restart job because Paper is awesome
- hosts: game1.thefuck.how
vars_files:
- vars/minecraft-vanilla.yml
roles:
- role: minecraft
tags: [ game, minecraft, paper, vanilla ]
# Valhelsia
- hosts: game1.thefuck.how
tasks:
- name: restart minecraft@valhelsia nightly
cron: name=restart-valhelsia hour=5 minute=0 job="systemctl restart minecraft@valhelsia" disabled={{ not minecraft_enabled }}
tags: [ game, minecraft, forge, valhelsia, cron ]
vars_files:
- vars/minecraft-valhelsia.yml
roles:
- role: minecraft
tags: [ game, minecraft, forge, valhelsia ]
# The Magic Pack
- hosts: game1.thefuck.how
tasks:
- name: restart minecraft@dammit nightly
cron: name=restart-dammit hour=5 minute=0 job="systemctl restart minecraft@dammit" disabled={{ not minecraft_enabled }}
tags: [ game, minecraft, forge, dammit, cron ]
vars_files:
- vars/minecraft-dammit.yml
roles:

View File

@ -18,6 +18,7 @@ User=pulseaudio
Group=pulseaudio
ExecStart=/usr/bin/pulseaudio --disallow-exit
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
[Install]
WantedBy=multi-user.target