diff --git a/roles/shell/tasks/bzflag.yml b/roles/shell/tasks/bzflag.yml index 5c691ec..37aaa65 100644 --- a/roles/shell/tasks/bzflag.yml +++ b/roles/shell/tasks/bzflag.yml @@ -9,6 +9,24 @@ mode: 0770 recurse: yes +- name: Install znc target + copy: + dest: /etc/systemd/system/bzflag.service + content: | + [Install] + WantedBy=multi-user.target + + [Unit] + Description=BZFlag Game Server + After=network-online.target + + [Service] + ExecStart=/usr/games/bzfs -conf /var/lib/bzflag/bzflag.conf + ExecReload=/bin/kill -HUP $MAINPID + User=bzflag + + [Install] + WantedBy=multi-user.target #- name: Install znc user script # copy: # src: ../files/var/lib/znc/create-znc_account.sh diff --git a/roles/shell/tasks/znc.yml b/roles/shell/tasks/znc.yml index 194cd6f..72a3234 100644 --- a/roles/shell/tasks/znc.yml +++ b/roles/shell/tasks/znc.yml @@ -1,4 +1,4 @@ -# Install our baseline packages for all machines, irrespective of what role they might have +# Configure znc --- - name: Create home dirs for znc file: @@ -17,18 +17,12 @@ group: root mode: 0770 -- name: Install crontab target +- name: Install znc target copy: dest: /etc/systemd/system/znc.service content: | [Install] WantedBy=multi-user.target - [Unit] - Description=Simulates cron, limited to /etc/cron.* - Requires=crontab@hourly.timer - Requires=crontab@daily.timer - Requires=crontab@weekly.timer - Requires=crontab@monthly.timer [Unit] Description=ZNC, an advanced IRC bouncer